public class WinstoneOutputStream extends ServletOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bodyOnly |
protected ByteArrayOutputStream |
buffer |
protected long |
bufferPosition |
protected long |
bufferSize |
protected long |
bytesCommitted |
protected boolean |
closed |
protected boolean |
committed |
protected boolean |
disregardMode |
protected Stack |
includeByteStreams |
protected OutputStream |
outStream |
protected WinstoneResponse |
owner |
| Constructor and Description |
|---|
WinstoneOutputStream(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) |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnwriteprotected OutputStream outStream
protected long bufferSize
protected long bufferPosition
protected long bytesCommitted
protected ByteArrayOutputStream buffer
protected boolean committed
protected boolean bodyOnly
protected WinstoneResponse owner
protected boolean disregardMode
protected boolean closed
protected Stack includeByteStreams
public WinstoneOutputStream(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 IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void commit()
throws IOException
IOExceptionpublic void reset()
public void finishResponse()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic boolean isIncluding()
public void startIncludeBuffer()
public void finishIncludeBuffer()
throws IOException
IOExceptionpublic void clearIncludeStackForForward()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.