Class FastByteArrayInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FastByteArrayInputStream
    extends java.io.InputStream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      int read()  
      int read​(byte[] b, int off, int len)  
      void setBuffer​(byte[] buffer)  
      void setBuffer​(byte[] buffer, int pos, int len)  
      long skip​(long n)  
      • Methods inherited from class java.io.InputStream

        close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FastByteArrayInputStream

        public FastByteArrayInputStream()
    • Method Detail

      • setBuffer

        public void setBuffer​(byte[] buffer)
      • setBuffer

        public void setBuffer​(byte[] buffer,
                              int pos,
                              int len)
      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
        Overrides:
        read in class java.io.InputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • skip

        public long skip​(long n)
        Overrides:
        skip in class java.io.InputStream