Class MemoryRandomAccess

  • All Implemented Interfaces:
    RandomAccess

    public class MemoryRandomAccess
    extends java.lang.Object
    implements RandomAccess
    • Constructor Summary

      Constructors 
      Constructor Description
      MemoryRandomAccess​(byte[] data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      long length()  
      long read​(byte[] ba, int offset, int length)  
      void seek​(long l)  
      • Methods inherited from class java.lang.Object

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

      • MemoryRandomAccess

        public MemoryRandomAccess​(byte[] data)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface RandomAccess
        Throws:
        java.io.IOException
      • length

        public long length()
                    throws java.io.IOException
        Specified by:
        length in interface RandomAccess
        Throws:
        java.io.IOException
      • seek

        public void seek​(long l)
                  throws java.io.IOException
        Specified by:
        seek in interface RandomAccess
        Throws:
        java.io.IOException
      • read

        public long read​(byte[] ba,
                         int offset,
                         int length)
                  throws java.io.IOException
        Specified by:
        read in interface RandomAccess
        Throws:
        java.io.IOException