public class JspWriterAdapter extends BodyContent
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearBody()
Clears the contents of a body tag.
|
void |
clearBuffer() |
void |
close() |
void |
flush()
Flushes the output stream.
|
void |
flushBuffer()
Flushes the buffer, but doesn't call flush().
|
int |
getBufferSize()
Returns the buffer size of the writer.
|
JspWriter |
getEnclosingWriter()
Returns the parent JSP writer.
|
java.io.Reader |
getReader()
Returns a Reader for accessing the contents of a body tag.
|
int |
getRemaining()
Returns the remaining bytes in the buffer.
|
java.lang.String |
getString()
Returns a String representing the contents of a body tag.
|
boolean |
isAutoFlush()
Returns the autoFlush flag.
|
void |
newLine()
Writes the newline character.
|
void |
print(boolean b)
Prints a boolean.
|
void |
print(char ch)
Prints a character.
|
void |
print(char[] s)
Prints a character array
|
void |
print(double d) |
void |
print(float f) |
void |
print(int i) |
void |
print(long v) |
void |
print(java.lang.Object v)
Prints the value of the object.
|
void |
print(java.lang.String s)
Prints a string.
|
void |
println()
Prints the newline.
|
void |
println(boolean v)
Prints the boolean followed by a newline.
|
void |
println(char v)
Prints a character followed by a newline.
|
void |
println(char[] s)
Writes a character array followed by a newline.
|
void |
println(double v)
Prints a double followed by a newline.
|
void |
println(float v)
Prints a float followed by a newline.
|
void |
println(int v)
Prints an integer followed by a newline.
|
void |
println(long v)
Prints a long followed by a newline.
|
void |
println(java.lang.Object v)
Writes an object followed by a newline.
|
void |
println(java.lang.String s)
Writes a string followed by a newline.
|
void |
setParent(JspWriter parent)
Sets the parent.
|
void |
setPrintNullAsBlank(boolean enable) |
java.lang.String |
toString() |
void |
write(char[] buf)
Writes a char buffer to the output.
|
void |
write(char[] buf,
int offset,
int length)
Writes a character array to the writer.
|
void |
write(int ch)
Writes a character to the output.
|
void |
write(java.lang.String s)
Writes a string to the output.
|
void |
write(java.lang.String s,
int off,
int len)
Writes a subsection of a string to the output.
|
void |
writeOut(java.io.Writer writer)
Writes the contents to the writer.
|
public final void write(char[] buf, int offset, int length) throws java.io.IOException
buf
- the buffer to write.off
- the offset into the bufferlen
- the number of characters to writejava.io.IOException
public final void write(int ch) throws java.io.IOException
buf
- the buffer to write.java.io.IOException
public final void println() throws java.io.IOException
java.io.IOException
public final void write(java.lang.String s, int off, int len) throws java.io.IOException
java.io.IOException
public int getBufferSize()
public int getRemaining()
public void clear() throws java.io.IOException
java.io.IOException
public void clearBuffer() throws java.io.IOException
java.io.IOException
public void flushBuffer() throws java.io.IOException
FlushBuffer
flushBuffer
in interface FlushBuffer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
java.io.IOException
public final void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void setPrintNullAsBlank(boolean enable)
public final void write(char[] buf) throws java.io.IOException
write
in class java.io.Writer
buf
- the buffer to write.java.io.IOException
public final void write(java.lang.String s) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void newLine() throws java.io.IOException
public final void print(boolean b) throws java.io.IOException
public void print(char ch) throws java.io.IOException
public void print(int i) throws java.io.IOException
public void print(long v) throws java.io.IOException
public final void print(float f) throws java.io.IOException
public final void print(double d) throws java.io.IOException
public final void print(char[] s) throws java.io.IOException
public final void print(java.lang.String s) throws java.io.IOException
public final void print(java.lang.Object v) throws java.io.IOException
public final void println(boolean v) throws java.io.IOException
public final void println(char v) throws java.io.IOException
public final void println(int v) throws java.io.IOException
public final void println(long v) throws java.io.IOException
public final void println(float v) throws java.io.IOException
public final void println(double v) throws java.io.IOException
public final void println(char[] s) throws java.io.IOException
public final void println(java.lang.String s) throws java.io.IOException
public final void println(java.lang.Object v) throws java.io.IOException
public void writeOut(java.io.Writer writer) throws java.io.IOException
BodyContent
writer
- the destination writer .java.io.IOException
public java.lang.String getString()
BodyContent
public java.io.Reader getReader()
BodyContent
public void clearBody()
BodyContent
public void setParent(JspWriter parent)
public final JspWriter getEnclosingWriter()
getEnclosingWriter
in class BodyContent
public final boolean isAutoFlush()
isAutoFlush
in class JspWriter