|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--javax.servlet.jsp.JspWriter | +--javax.servlet.jsp.tagext.BodyContent | +--com.caucho.jsp.QBodyContent
Implementation of the JSP 1.1 BodyContent interface.
Fields inherited from class javax.servlet.jsp.JspWriter |
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER |
Fields inherited from class java.io.Writer |
lock |
Method Summary | |
void |
clear()
Clear the contents of the buffer. |
void |
clearBody()
Clears the body contents. |
void |
clearBuffer()
Clears the current contents of the buffer. |
void |
close()
Close the stream, flushing it first |
void |
flush()
Redefined flush() so it is not legal. |
int |
getBufferSize()
This method returns the size of the buffer used by the JspWriter. |
JspWriter |
getEnclosingWriter()
Returns the enclosing writer. |
java.io.Reader |
getReader()
Returns a reader to the body content. |
int |
getRemaining()
This method returns the number of unused bytes in the buffer. |
java.lang.String |
getString()
Returns a string representing the body content. |
WriteStream |
getWriteStream()
Returns the underlying write stream for the content. |
boolean |
isAutoFlush()
This method indicates whether the JspWriter is autoFlushing. |
void |
newLine()
Writes a newline to the stream. |
void |
print(boolean b)
Print a boolean value. |
void |
print(char ch)
Print a character. |
void |
print(char[] s)
Print an array of characters. |
void |
print(double d)
Print a double-precision floating-point number. |
void |
print(float f)
Print a floating-point number. |
void |
print(int i)
Print an integer. |
void |
print(long l)
Print a long integer. |
void |
print(java.lang.Object o)
Print an object. |
void |
print(java.lang.String s)
Print a string. |
void |
println()
Terminate the current line by writing the line separator string. |
void |
println(boolean b)
Print a boolean value and then terminate the line. |
void |
println(char ch)
Print a character and then terminate the line. |
void |
println(char[] s)
Print an array of characters and then terminate the line. |
void |
println(double d)
Print a double-precision floating-point number and then terminate the line. |
void |
println(float f)
Print a floating-point number and then terminate the line. |
void |
println(int i)
Print an integer and then terminate the line. |
void |
println(long l)
Print a long integer and then terminate the line. |
void |
println(java.lang.Object o)
Print an Object and then terminate the line. |
void |
println(java.lang.String s)
Print a String and then terminate the line. |
void |
release()
Releases the body content at the end of the tag. |
void |
write(byte[] buf,
int off,
int len)
Writes bytes to the stream. |
void |
write(char[] buf)
Writes characters to the stream. |
void |
write(char[] buf,
int off,
int len)
Writes characters to the stream. |
void |
write(int i)
Writes an integer to the stream. |
void |
write(java.lang.String s)
Writes a string to the stream. |
void |
write(java.lang.String s,
int off,
int len)
Writes a substring to the stream. |
void |
writeOut(java.io.Writer out)
Writes the body contents out to the named writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public WriteStream getWriteStream()
getWriteStream
in interface EnclosedWriteStream
public JspWriter getEnclosingWriter()
getEnclosingWriter
in class BodyContent
javax.servlet.jsp.tagext.BodyContent
public final void write(byte[] buf, int off, int len) throws java.io.IOException
write
in interface ByteWriteStream
buf
- byte bufferoff
- starting offset into the bufferlen
- length of valid bytes in the buffer.public final void write(char[] buf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
buf
- character bufferoff
- starting offset into the bufferlen
- length of valid bytes in the buffer.public final void write(int i) throws java.io.IOException
write
in class java.io.Writer
i
- the integer to writepublic final void write(char[] buf) throws java.io.IOException
write
in class java.io.Writer
buf
- character bufferpublic final void write(java.lang.String s) throws java.io.IOException
write
in class java.io.Writer
s
- the string to writepublic final void write(java.lang.String s, int off, int len) throws java.io.IOException
write
in class java.io.Writer
s
- the string to writeoff
- starting offset into the stringlen
- length of the substringpublic final void newLine() throws java.io.IOException
newLine
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- If an I/O error occurspublic final void print(boolean b) throws java.io.IOException
JspWriter
String.valueOf(boolean)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
b
- The boolean
to be printedjava.io.IOException
- public final void print(char ch) throws java.io.IOException
JspWriter
Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
c
- The char
to be printedjava.io.IOException
- public final void print(int i) throws java.io.IOException
JspWriter
String.valueOf(int)
is translated into bytes according
to the platform's default character encoding, and these bytes are
written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
i
- The int
to be printedjava.io.IOException
- java.lang.Integer#toString(int)
public final void print(long l) throws java.io.IOException
JspWriter
String.valueOf(long)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
l
- The long
to be printedjava.io.IOException
- java.lang.Long#toString(long)
public final void print(float f) throws java.io.IOException
JspWriter
String.valueOf(float)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
f
- The float
to be printedjava.io.IOException
- java.lang.Float#toString(float)
public final void print(double d) throws java.io.IOException
JspWriter
String.valueOf(double)
is translated into
bytes according to the platform's default character encoding, and these
bytes are written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
d
- The double
to be printedjava.io.IOException
- java.lang.Double#toString(double)
public final void print(char[] s) throws java.io.IOException
JspWriter
Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
s
- The array of chars to be printedNullPointerException
- If s
is null
java.io.IOException
- public final void print(java.lang.String s) throws java.io.IOException
JspWriter
null
then the string
"null"
is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
s
- The String
to be printedjava.io.IOException
- public final void print(java.lang.Object o) throws java.io.IOException
JspWriter
String.valueOf(Object)
method is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the Writer.write(int)
method.print
in class JspWriter
javax.servlet.jsp.JspWriter
obj
- The Object
to be printedjava.io.IOException
- Object.toString()
public final void println() throws java.io.IOException
JspWriter
line.separator
, and is not necessarily a single newline
character ('\n'
).println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(boolean b) throws java.io.IOException
JspWriter
JspWriter.print(boolean)
and then
JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(char ch) throws java.io.IOException
JspWriter
JspWriter.print(char)
and then JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(int i) throws java.io.IOException
JspWriter
JspWriter.print(int)
and then JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(long l) throws java.io.IOException
JspWriter
JspWriter.print(long)
and then
JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(float f) throws java.io.IOException
JspWriter
JspWriter.print(float)
and then
JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(double d) throws java.io.IOException
JspWriter
JspWriter.print(double)
and then JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(char[] s) throws java.io.IOException
JspWriter
print(char[])
and then
println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(java.lang.String s) throws java.io.IOException
JspWriter
JspWriter.print(String)
and then
JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void println(java.lang.Object o) throws java.io.IOException
JspWriter
JspWriter.print(Object)
and then
JspWriter.println()
.println
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- public final void clear() throws java.io.IOException
JspWriter
clear
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- If an I/O error occurspublic final void clearBuffer() throws java.io.IOException
JspWriter
clearBuffer
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- If an I/O error occurspublic final void flush() throws java.io.IOException
BodyContent
It is not valid to flush a BodyContent because there is no backing stream behind it.
flush
in class BodyContent
javax.servlet.jsp.JspWriter
java.io.IOException
- If an I/O error occurspublic final void close() throws java.io.IOException
JspWriter
This method needs not be invoked explicitly for the initial JspWriter as the code generated by the JSP container will automatically include a call to close().
Closing a previously-closed stream, unlike flush(), has no effect.
close
in class JspWriter
javax.servlet.jsp.JspWriter
java.io.IOException
- If an I/O error occurspublic final int getBufferSize()
JspWriter
getBufferSize
in class JspWriter
javax.servlet.jsp.JspWriter
public final int getRemaining()
JspWriter
getRemaining
in class JspWriter
javax.servlet.jsp.JspWriter
public final boolean isAutoFlush()
JspWriter
isAutoFlush
in class JspWriter
javax.servlet.jsp.JspWriter
public void clearBody()
clearBody
in class BodyContent
public java.io.Reader getReader()
getReader
in class BodyContent
javax.servlet.jsp.tagext.BodyContent
public java.lang.String getString()
getString
in class BodyContent
javax.servlet.jsp.tagext.BodyContent
public void writeOut(java.io.Writer out) throws java.io.IOException
writeOut
in class BodyContent
javax.servlet.jsp.tagext.BodyContent
out
- The writer into which to place the contents of
this body evaluationpublic void release() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |