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

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    write(byte[] source, int offset, int len)
     
    void
    write(int i)
     

    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 upon
      pBufferLength - 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 interface java.lang.AutoCloseable
      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