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