public class DechunkedOutputStream extends LimitOutputStream
LimitOutputStream.DoneCallback_callback, _isDoneout| Constructor and Description |
|---|
DechunkedOutputStream(OutputStream raw,
LimitOutputStream.DoneCallback callback,
boolean strip)Creates a new dechunked output stream. |
| Modifier and Type | Method and Description |
|---|---|
void | write(byte[] buf,
int off,
int len)Subclasses MUST override the following method
such that it calls done() when finished
and throws EOFException if called again |
isDone, setDone, writeclose, flush, writepublic DechunkedOutputStream(OutputStream raw, LimitOutputStream.DoneCallback callback, boolean strip)
raw - the underlying output streamcallback - callback invoked when chunking is completestrip - true to strip chunk headers/footers, false to pass them throughpublic void write(byte[] buf,
int off,
int len)
throws IOExceptionLimitOutputStreamwrite in class LimitOutputStreamIOException