|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
com.caucho.vfs.AbstractPrintWriter
com.caucho.server.http.ResponseWriter
public class ResponseWriter
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ResponseWriter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.vfs.AbstractPrintWriter |
---|
newLine, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, write, write |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, clearError, format, format, printf, printf, setError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResponseWriter()
Method Detail |
---|
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 class java.io.PrintWriter
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |