Class RandomDataInputMemory.SeeakableByteArrayInputStream

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

    public static class RandomDataInputMemory.SeeakableByteArrayInputStream
    extends java.io.ByteArrayInputStream
    class which allows seeking over a ByteArrayInputStream
    • Field Summary

      • Fields inherited from class java.io.ByteArrayInputStream

        buf, count, mark, pos
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBuffer()  
      long getFilePointer()  
      long length()  
      int read​(byte[] dst, long offset, int arrayOffset, int length)  
      void seek​(long _pos)  
      • Methods inherited from class java.io.ByteArrayInputStream

        available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.io.InputStream

        nullInputStream, read, readNBytes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Constructor Detail

      • SeeakableByteArrayInputStream

        public SeeakableByteArrayInputStream​(byte[] buf)
    • Method Detail

      • seek

        public void seek​(long _pos)
      • getFilePointer

        public long getFilePointer()
      • length

        public long length()
      • getBuffer

        public byte[] getBuffer()
      • read

        public int read​(byte[] dst,
                        long offset,
                        int arrayOffset,
                        int length)
                 throws java.io.IOException
        Throws:
        java.io.IOException