org.sblim.cimclient.internal.http.io
Class ChunkedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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


Constructor Summary
ChunkedOutputStream(OutputStream pStream, int pBufferLength)
          Ctor.
 
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
 

Constructor Detail

ChunkedOutputStream

public ChunkedOutputStream(OutputStream pStream,
                           int pBufferLength)
Ctor.

Parameters:
pStream - The stream to create this one upon
pBufferLength - The buffer length. When this value is exceeded a new chunk will be started.
Method Detail

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.