Package io.fusionauth.http.io
Class ChunkedOutputStream
java.lang.Object
java.io.OutputStream
io.fusionauth.http.io.ChunkedOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An OutputStream that writes back a chunked response.
- Author:
- Brian Pontarelli
-
Constructor Summary
ConstructorsConstructorDescriptionChunkedOutputStream(OutputStream delegate, byte[] buffer, FastByteArrayOutputStream chuckOutputStream) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ChunkedOutputStream
public ChunkedOutputStream(OutputStream delegate, byte[] buffer, FastByteArrayOutputStream chuckOutputStream)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-