org.sblim.cimclient.internal.http.io
Class ChunkedOutputStream
java.lang.Object
java.io.OutputStream
org.sblim.cimclient.internal.http.io.ChunkedOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ChunkedOutputStream
- extends OutputStream
Class ChunkedOutputStream implements an output stream for chunked messages
Method Summary |
void |
close()
|
void |
flush()
|
void |
write(byte[] source,
int offset,
int len)
|
void |
write(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedOutputStream
public ChunkedOutputStream(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.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
write
public void write(byte[] source,
int offset,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Parameters:
offset
-
- Throws:
IOException
write
public void write(int i)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.