|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
javax.servlet.jsp.JspWriter
javax.servlet.jsp.tagext.BodyContent
com.caucho.jsp.JspWriterAdapter
public class JspWriterAdapter
A buffered JSP writer encapsulating a Writer.
| Field Summary |
|---|
| 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()
|
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)
|
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. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 write
java.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.IOExceptionpublic 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 FlushBufferjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOException
public final void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOExceptionpublic 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.IOException
public final void write(java.lang.String s)
throws java.io.IOException
write in class java.io.Writerjava.io.IOException
public void newLine()
throws java.io.IOException
newLine in class JspWriterjava.io.IOException
public final void print(boolean b)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public void print(char ch)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public void print(int i)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public void print(long v)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void print(float f)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void print(double d)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void print(char[] s)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void print(java.lang.String s)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void print(java.lang.Object v)
throws java.io.IOException
print in class JspWriterjava.io.IOException
public final void println(boolean v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(char v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(int v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(long v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(float v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(double v)
throws java.io.IOException
println in class JspWriterv - the value to print
java.io.IOException
public final void println(char[] s)
throws java.io.IOException
println in class JspWriterjava.io.IOException
public final void println(java.lang.String s)
throws java.io.IOException
println in class JspWriterjava.io.IOException
public final void println(java.lang.Object v)
throws java.io.IOException
println in class JspWriterjava.io.IOException
public void writeOut(java.io.Writer writer)
throws java.io.IOException
BodyContent
writer - the destination writer .
java.io.IOExceptionpublic 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 BodyContentpublic final boolean isAutoFlush()
isAutoFlush in class JspWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||