Class Overview
Mock implementation of the javax.servlet.jsp.JspWriter class.
Used for testing the web framework; only necessary for testing
applications when testing custom JSP tags.
Summary
Public Constructors |
|
MockJspWriter(HttpServletResponse response)
Create a MockJspWriter for the given response,
using the response's default Writer.
|
|
MockJspWriter(Writer targetWriter)
Create a MockJspWriter for the given plain Writer.
|
|
MockJspWriter(HttpServletResponse response, Writer targetWriter)
Create a MockJspWriter for the given response.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MockJspWriter
(HttpServletResponse response)
Create a MockJspWriter for the given response,
using the response's default Writer.
Parameters
response
| the servlet response to wrap
|
public
MockJspWriter
(Writer targetWriter)
Create a MockJspWriter for the given plain Writer.
Parameters
targetWriter
| the target Writer to wrap
|
public
MockJspWriter
(HttpServletResponse response, Writer targetWriter)
Create a MockJspWriter for the given response.
Parameters
response
| the servlet response to wrap |
targetWriter
| the target Writer to wrap
|
Public Methods
public
void
clearBuffer
()
public
int
getRemaining
()
public
void
print
(float value)
public
void
print
(double value)
public
void
print
(String value)
public
void
print
(Object value)
public
void
print
(char value)
public
void
print
(char[] value)
public
void
print
(long value)
public
void
print
(int value)
public
void
print
(boolean value)
public
void
println
(float value)
public
void
println
(int value)
public
void
println
(long value)
public
void
println
(Object value)
public
void
println
(char[] value)
public
void
println
(String value)
public
void
println
(char value)
public
void
println
(double value)
public
void
println
(boolean value)
public
void
write
(char[] value, int offset, int length)
Protected Methods
protected
PrintWriter
getTargetWriter
()
Lazily initialize the target Writer.