Package net.i2p.i2ptunnel.util
Class DechunkedOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.i2p.i2ptunnel.util.LimitOutputStream
net.i2p.i2ptunnel.util.DechunkedOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Simple stream for checking and optionally removing RFC2616 chunked encoding to the output.
- Since:
- 0.9.62
-
Nested Class Summary
Nested classes/interfaces inherited from class net.i2p.i2ptunnel.util.LimitOutputStream
LimitOutputStream.DoneCallback
-
Field Summary
Fields inherited from class net.i2p.i2ptunnel.util.LimitOutputStream
_callback, _isDone
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionDechunkedOutputStream
(OutputStream raw, LimitOutputStream.DoneCallback callback, boolean strip) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 againMethods inherited from class net.i2p.i2ptunnel.util.LimitOutputStream
isDone, setDone, write
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
DechunkedOutputStream
public DechunkedOutputStream(OutputStream raw, LimitOutputStream.DoneCallback callback, boolean strip)
-
-
Method Details
-
write
Description copied from class:LimitOutputStream
Subclasses MUST override the following method such that it calls done() when finished and throws EOFException if called again- Overrides:
write
in classLimitOutputStream
- Throws:
IOException
-