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.IOException
public 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.IOException
public final void write(int ch) throws java.io.IOException
ch
- character to write.java.io.IOException
public final void clear() throws java.io.IOException
java.io.IOException
public final void clearBuffer() throws java.io.IOException
java.io.IOException
public final void flush() throws java.io.IOException
BodyContent
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 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.IOException
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface FlushBuffer
java.io.IOException
public 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.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 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 BodyContent
public final boolean isAutoFlush()
isAutoFlush
in class JspWriter