public class MockJspWriter
extends javax.servlet.jsp.JspWriter
JspWriter.
Collects the output data.| Constructor and Description |
|---|
MockJspWriter() |
MockJspWriter(javax.servlet.http.HttpServletResponse response) |
MockJspWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the output.
|
void |
clearBuffer()
Clears the output.
|
void |
close() |
void |
flush() |
String |
getOutputAsString()
Returns the output.
|
int |
getRemaining() |
void |
newLine() |
void |
print(boolean value) |
void |
print(char value) |
void |
print(char[] value) |
void |
print(double value) |
void |
print(float value) |
void |
print(int value) |
void |
print(long value) |
void |
print(Object value) |
void |
print(String value) |
void |
println() |
void |
println(boolean value) |
void |
println(char value) |
void |
println(char[] value) |
void |
println(double value) |
void |
println(float value) |
void |
println(int value) |
void |
println(long value) |
void |
println(Object value) |
void |
println(String value) |
String |
toString()
Delegates to
getOutputAsString() |
void |
write(char[] cbuf,
int off,
int len) |
public MockJspWriter()
public MockJspWriter(javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic MockJspWriter(Writer writer)
public String getOutputAsString()
public String toString()
getOutputAsString()public void clear()
throws IOException
IOException,
if a Writer was provided according to spec.clear in class javax.servlet.jsp.JspWriterIOExceptionpublic void clearBuffer()
throws IOException
Writer was provided according to spec.clearBuffer in class javax.servlet.jsp.JspWriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class javax.servlet.jsp.JspWriterIOExceptionpublic int getRemaining()
getRemaining in class javax.servlet.jsp.JspWriterpublic void flush()
throws IOException
flush in interface Flushableflush in class javax.servlet.jsp.JspWriterIOExceptionpublic void newLine()
throws IOException
newLine in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(boolean value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(char value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(char[] value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(double value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(float value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(int value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(long value)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(Object value) throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(String value) throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void println()
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(boolean value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(char value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(char[] value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(double value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(float value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(int value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(long value)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(Object value) throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(String value) throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionCopyright © 2003-2015. All Rights Reserved.