public class ChunkingOutputStream extends BufferedOutputStream implements HttpMessage.HeaderWriter
_httpMessageWriter, _out_buf| Constructor and Description |
|---|
ChunkingOutputStream(OutputStream outputStream,
int bufferSize,
int headerReserve)
Constructor.
|
ChunkingOutputStream(OutputStream outputStream,
int bufferSize,
int headerReserve,
boolean chunking)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
bypassWrite(byte[] b,
int offset,
int length) |
void |
close() |
boolean |
isChunking() |
void |
resetStream() |
void |
setChunking(boolean chunking) |
protected void |
wrapBuffer()
Wrap Buffer.
|
destroy, flush, getBypassBuffer, getCommitObserver, getOutputStream, isCommitted, setBypassBuffer, setCommitObserver, write, write, writeHeaderbufferSize, capacity, ensureCapacity, ensureReserve, ensureSize, ensureSize, ensureSpareCapacity, isFixed, postReserve, postwrite, postwrite, preReserve, prewrite, prewrite, prewrite, reset, setFixed, size, spareCapacity, write, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteHeaderpublic ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve)
outputStream - The outputStream to buffer or chunk to.public ChunkingOutputStream(OutputStream outputStream, int bufferSize, int headerReserve, boolean chunking)
outputStream - The outputStream to buffer or chunk to.public boolean isChunking()
public void setChunking(boolean chunking)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class BufferedOutputStreamIOExceptionpublic void resetStream()
resetStream in class BufferedOutputStreamprotected void wrapBuffer()
throws IOException
BufferedOutputStreamwrapBuffer in class BufferedOutputStreamIOExceptionprotected void bypassWrite(byte[] b,
int offset,
int length)
throws IOException
bypassWrite in class BufferedOutputStreamIOExceptionCopyright © 2013. All rights reserved.