Class FastByteArrayInputStream

java.lang.Object
java.io.InputStream
com.jbstrap.core.utils.FastByteArrayInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class FastByteArrayInputStream extends InputStream
Since:
4.0
Author:
JBStrap
  • Field Details

    • buf

      protected byte[] buf
    • count

      protected int count
    • pos

      protected int pos
  • Constructor Details

    • FastByteArrayInputStream

      public FastByteArrayInputStream(byte[] buf, int count)
  • 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