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