public class WinstoneOutputStream extends ServletOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bodyOnly |
protected java.io.ByteArrayOutputStream |
buffer |
protected long |
bufferPosition |
protected long |
bufferSize |
protected long |
bytesCommitted |
protected boolean |
closed |
protected boolean |
committed |
protected boolean |
disregardMode |
protected java.util.Stack |
includeByteStreams |
protected java.io.OutputStream |
outStream |
protected WinstoneResponse |
owner |
| Constructor and Description |
|---|
WinstoneOutputStream(java.io.OutputStream out,
boolean bodyOnlyForInclude)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearIncludeStackForForward() |
void |
close() |
void |
commit() |
void |
finishIncludeBuffer() |
void |
finishResponse() |
void |
flush() |
long |
getBufferSize() |
long |
getBytesCommitted() |
long |
getOutputStreamLength() |
boolean |
isCommitted() |
boolean |
isIncluding() |
void |
reset() |
void |
setBufferSize(int bufferSize) |
void |
setClosed(boolean closed) |
void |
setDisregardMode(boolean disregard) |
void |
setResponse(WinstoneResponse response) |
void |
startIncludeBuffer() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int oneChar) |
protected java.io.OutputStream outStream
protected long bufferSize
protected long bufferPosition
protected long bytesCommitted
protected java.io.ByteArrayOutputStream buffer
protected boolean committed
protected boolean bodyOnly
protected WinstoneResponse owner
protected boolean disregardMode
protected boolean closed
protected java.util.Stack includeByteStreams
public WinstoneOutputStream(java.io.OutputStream out,
boolean bodyOnlyForInclude)
public void setResponse(WinstoneResponse response)
public long getBufferSize()
public void setBufferSize(int bufferSize)
public boolean isCommitted()
public long getOutputStreamLength()
public long getBytesCommitted()
public void setDisregardMode(boolean disregard)
public void setClosed(boolean closed)
public void write(int oneChar)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void commit()
throws java.io.IOException
java.io.IOExceptionpublic void reset()
public void finishResponse()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic boolean isIncluding()
public void startIncludeBuffer()
public void finishIncludeBuffer()
throws java.io.IOException
java.io.IOExceptionpublic void clearIncludeStackForForward()
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.