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, write
public void init(AbstractResponseStream out)
public int getBufferSize()
public void setBufferSize(int size)
public int getRemaining()
public boolean checkError()
checkError
in class java.io.PrintWriter
public void clearBuffer()
public final void write(int ch)
write
in class AbstractPrintWriter
buf
- the buffer to write.public final void write(char[] buf, int offset, int length)
write
in class AbstractPrintWriter
buf
- 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 AbstractPrintWriter
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.PrintWriter
public void flushBuffer()
isEnd
- true if the request is done.public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.PrintWriter
public java.lang.String toString()
toString
in class java.lang.Object