|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
winstone.WinstoneResponseWriter
public class WinstoneResponseWriter
A hacked print writer that allows us to trigger an automatic flush on println operations that go over the content length or buffer size. This is only necessary because the spec authors seem intent of having the print writer's flushing behaviour be half auto-flush and half not. Damned if I know why - seems unnecessary and confusing to me.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
WinstoneResponseWriter(WinstoneOutputStream out,
WinstoneResponse response)
|
Method Summary | |
---|---|
protected void |
appendByteCount(java.lang.String input)
|
void |
flush()
|
void |
println()
|
protected void |
simulateAutoFlush()
|
void |
write(char[] buf,
int off,
int len)
|
void |
write(int c)
|
void |
write(java.lang.String s,
int off,
int len)
|
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, close, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WinstoneResponseWriter(WinstoneOutputStream out, WinstoneResponse response) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
Method Detail |
---|
public void write(int c)
write
in class java.io.PrintWriter
public void write(char[] buf, int off, int len)
write
in class java.io.PrintWriter
public void write(java.lang.String s, int off, int len)
write
in class java.io.PrintWriter
protected void appendByteCount(java.lang.String input)
public void println()
println
in class java.io.PrintWriter
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.PrintWriter
protected void simulateAutoFlush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |