public class ResponseWriter extends AbstractPrintWriter
| Constructor and Description |
|---|
ResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkError()
Checks for an error.
|
void |
clearBuffer()
Clears the response buffer.
|
void |
close() |
void |
flush()
Flushes the buffered response to the output stream.
|
void |
flushBuffer()
Flush the contents of the buffer to the underlying stream.
|
int |
getBufferSize() |
int |
getRemaining() |
void |
init(AbstractResponseStream out) |
void |
setBufferSize(int size)
Sets the buffer size.
|
java.lang.String |
toString() |
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,
int off,
int len)
Writes a subsection of a string to the output.
|
newLine, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, write, writepublic void init(AbstractResponseStream out)
public int getBufferSize()
public void setBufferSize(int size)
public int getRemaining()
public boolean checkError()
checkError in class java.io.PrintWriterpublic void clearBuffer()
public final void write(int ch)
write in class AbstractPrintWriterbuf - the buffer to write.public final void write(char[] buf,
int offset,
int length)
write in class AbstractPrintWriterbuf - the buffer to write.off - the offset into the bufferlen - the number of characters to writepublic final void write(java.lang.String s,
int off,
int len)
write in class AbstractPrintWriterpublic void flush()
flush in interface java.io.Flushableflush in class java.io.PrintWriterpublic void flushBuffer()
isEnd - true if the request is done.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.PrintWriterpublic java.lang.String toString()
toString in class java.lang.Object