Class ChunkedOutputStream
java.lang.Object
java.io.OutputStream
org.sblim.cimclient.internal.http.io.ChunkedOutputStream
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class ChunkedOutputStream
extends java.io.OutputStream
Class ChunkedOutputStream implements an output stream for chunked messages
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ChunkedOutputStream
public ChunkedOutputStream(java.io.OutputStream pStream, int pBufferLength) Ctor.- Parameters:
pStream
- The stream to create this one uponpBufferLength
- The buffer length. When this value is exceeded a new chunk will be started.
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] source, int offset, int len) throws java.io.IOException - Overrides:
write
in classjava.io.OutputStream
- Parameters:
offset
-- Throws:
java.io.IOException
-
write
public void write(int i) throws java.io.IOException - Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-