Class SimpleByteArrayInputStream

java.lang.Object
java.io.InputStream
com.espertech.esper.common.internal.util.SimpleByteArrayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class SimpleByteArrayInputStream extends InputStream
Input stream that relies on a simple byte array, unchecked.
  • Constructor Details

    • SimpleByteArrayInputStream

      public SimpleByteArrayInputStream(byte[] buf, int count)
      Ctor.
      Parameters:
      buf - is the byte buffer
      count - is the size of the buffer
  • Method Details

    • available

      public final int available()
      Overrides:
      available in class InputStream
    • read

      public final int read()
      Specified by:
      read in class InputStream
    • read

      public final int read(byte[] b, int off, int len)
      Overrides:
      read in class InputStream
    • skip

      public final long skip(long n)
      Overrides:
      skip in class InputStream