public class FakeBodyContent
extends javax.servlet.jsp.tagext.BodyContent
| Modifier and Type | Field and Description |
|---|---|
boolean |
unbounded
The unbounded.
|
| Constructor and Description |
|---|
FakeBodyContent(javax.servlet.jsp.JspWriter encl)
Instantiates a new fake body content.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the contents of the buffer, unless it was flushed.
|
void |
clearBuffer()
Clear the contents of the buffer.
|
void |
close()
Close is a no-op in BodyContent.
|
void |
flush()
Flush is a no-op in BodyContent, since you have to explicitly write its
contents to the enclosing writer.
|
javax.servlet.jsp.JspWriter |
getEnclosingWriter()
Get the enclosing JspWriter.
|
Reader |
getReader()
Return the value of this BodyContent as a Reader.
|
int |
getRemaining()
Return remaining size in the buffer.
|
String |
getString()
Return the value of the BodyContent as a String.
|
void |
newLine()
Add a newline to the buffer.
|
void |
print(boolean b) |
void |
print(char c) |
void |
print(char[] c) |
void |
print(double d) |
void |
print(float f) |
void |
print(int i) |
void |
print(long l) |
void |
print(Object o) |
void |
print(String s) |
void |
println() |
void |
println(boolean b) |
void |
println(char c) |
void |
println(char[] c) |
void |
println(double d) |
void |
println(float f) |
void |
println(int i) |
void |
println(long l) |
void |
println(Object o) |
void |
println(String s) |
protected void |
setEnclosingWriter(javax.servlet.jsp.JspWriter encl)
Sets the enclosing writer.
|
void |
write(char[] c,
int off,
int len)
Write an array of characters to the buffer.
|
void |
write(int i)
Write the character represented by the integer i to the buffer.
|
void |
write(String s)
Write the String s to the buffer.
|
void |
writeOut(Writer out)
Write the contents of this BodyContent into a Writer.
|
public FakeBodyContent(javax.servlet.jsp.JspWriter encl)
encl - the enclpublic void write(String s) throws IOException
write in class Writers - the sIOException - Signals that an I/O exception has occurred.public void write(int i)
throws IOException
write in class Writeri - the iIOException - Signals that an I/O exception has occurred.public void write(char[] c,
int off,
int len)
throws IOException
write in class Writerc - the coff - the offlen - the lenIOException - Signals that an I/O exception has occurred.public void print(char c)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(double d)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(boolean b)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(long l)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(float f)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(int i)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(Object o) throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(char[] c)
throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void print(String s) throws IOException
print in class javax.servlet.jsp.JspWriterIOExceptionpublic void println()
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(String s) throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(char c)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(char[] c)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(long l)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(int i)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(double d)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(float f)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(boolean b)
throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void println(Object o) throws IOException
println in class javax.servlet.jsp.JspWriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class javax.servlet.jsp.JspWriterIOException - Signals that an I/O exception has occurred.public void flush()
throws IOException
flush in interface Flushableflush in class javax.servlet.jsp.tagext.BodyContentIOException - Signals that an I/O exception has occurred.public int getRemaining()
getRemaining in class javax.servlet.jsp.JspWriterpublic void clear()
throws IOException
clear in class javax.servlet.jsp.JspWriterIOException - Signals that an I/O exception has occurred.public void clearBuffer()
throws IOException
clearBuffer in class javax.servlet.jsp.JspWriterIOException - Signals that an I/O exception has occurred.public void newLine()
throws IOException
newLine in class javax.servlet.jsp.JspWriterIOException - Signals that an I/O exception has occurred.public Reader getReader()
getReader in class javax.servlet.jsp.tagext.BodyContentpublic String getString()
getString in class javax.servlet.jsp.tagext.BodyContentpublic void writeOut(Writer out) throws IOException
writeOut in class javax.servlet.jsp.tagext.BodyContentout - The writer into which to place the contents of this body
evaluationIOException - Signals that an I/O exception has occurred.public javax.servlet.jsp.JspWriter getEnclosingWriter()
getEnclosingWriter in class javax.servlet.jsp.tagext.BodyContentprotected void setEnclosingWriter(javax.servlet.jsp.JspWriter encl)
encl - the new enclosing writerCopyright © 2005–2016 Alfresco Software. All rights reserved.