Class SimpleByteArrayOutputStream

java.lang.Object
java.io.OutputStream
com.espertech.esper.common.internal.util.SimpleByteArrayOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class SimpleByteArrayOutputStream extends OutputStream
Output stream that relies on a simple byte array, unchecked.
  • Constructor Details

    • SimpleByteArrayOutputStream

      public SimpleByteArrayOutputStream()
      Ctor.
    • SimpleByteArrayOutputStream

      public SimpleByteArrayOutputStream(int initSize)
      Ctor.
      Parameters:
      initSize - initial size
  • Method Details

    • write

      public final void write(byte[] b)
      Overrides:
      write in class OutputStream
    • write

      public final void write(byte[] b, int off, int len)
      Overrides:
      write in class OutputStream
    • write

      public final void write(int b)
      Specified by:
      write in class OutputStream
    • getInputStream

      public InputStream getInputStream()
      Return the input stream for the output buffer.
      Returns:
      input stream for existing buffer