public class BodyContentImpl extends BodyContent
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearBody()
Clears the body contents.
|
void |
clearBuffer() |
void |
close() |
void |
flush()
Flush does nothing for a bodyContent.
|
void |
flushBuffer()
Writes the body contents out to the named writer.
|
int |
getBufferSize() |
CharBuffer |
getCharBuffer() |
JspWriter |
getEnclosingWriter()
Returns the parent JSP writer.
|
java.io.Reader |
getReader()
Returns a reader to the body content.
|
int |
getRemaining() |
java.lang.String |
getString()
Returns a string representing the body content.
|
java.lang.String |
getTrimString()
Returns a string representing the body content.
|
java.io.PrintWriter |
getWriter()
Returns the print writer.
|
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 |
release()
Releases the body content at the end of the tag.
|
void |
setParent(JspWriter parent)
Sets the parent.
|
void |
setPrintNullAsBlank(boolean enable) |
void |
write(char[] buf)
Writes a char buffer to the output.
|
void |
write(char[] buf,
int off,
int len)
Writes characters to the stream.
|
void |
write(int ch)
Writes characters to the stream.
|
void |
write(java.lang.String s)
Writes a string to the output.
|
void |
write(java.lang.String s,
int off,
int len)
Writes characters to the stream.
|
void |
writeOut(java.io.Writer out)
Writes the body contents out to the named writer.
|
public final void write(char[] buf,
int off,
int len)
throws java.io.IOException
buf - character bufferoff - starting offset into the bufferlen - length of valid bytes in the buffer.java.io.IOExceptionpublic final void write(java.lang.String s,
int off,
int len)
throws java.io.IOException
s - stringoff - starting offset into the bufferlen - length of valid bytes in the buffer.java.io.IOExceptionpublic final void write(int ch)
throws java.io.IOException
ch - character to write.java.io.IOExceptionpublic final void clear()
throws java.io.IOException
java.io.IOExceptionpublic final void clearBuffer()
throws java.io.IOException
java.io.IOExceptionpublic final void flush()
throws java.io.IOException
BodyContentflush in interface java.io.Flushablejava.io.IOExceptionpublic final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic final int getBufferSize()
public final int getRemaining()
public void clearBody()
public java.io.Reader getReader()
public CharBuffer getCharBuffer()
public java.lang.String getString()
public java.lang.String getTrimString()
public void writeOut(java.io.Writer out)
throws java.io.IOException
out - the destination writer .java.io.IOExceptionpublic void flushBuffer()
throws java.io.IOException
flushBuffer in interface FlushBufferjava.io.IOExceptionpublic java.io.PrintWriter getWriter()
public void release()
public void setPrintNullAsBlank(boolean enable)
public final void write(char[] buf)
throws java.io.IOException
write in class java.io.Writerbuf - the buffer to write.java.io.IOExceptionpublic final void write(java.lang.String s)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic 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 void println()
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 setParent(JspWriter parent)
public final JspWriter getEnclosingWriter()
getEnclosingWriter in class BodyContentpublic final boolean isAutoFlush()
isAutoFlush in class JspWriter