Class ByteArrayIndexInput

All Implemented Interfaces:, java.lang.AutoCloseable, java.lang.Cloneable

public class ByteArrayIndexInput
Wraps array of bytes into IndexInput
  • Constructor Summary

    Constructor Description
    ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes)  
    ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes, int offset, int length)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    long getFilePointer()  
    long length()  
    byte readByte()  
    void readBytes​(byte[] b, int offset, int len)  
    void seek​(long l) slice​(java.lang.String sliceDescription, long offset, long length)  

    Methods inherited from class

    clone, getFullSliceDescription, randomAccessSlice, toString

    Methods inherited from class

    readBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ByteArrayIndexInput

      public ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes)
    • ByteArrayIndexInput

      public ByteArrayIndexInput​(java.lang.String resourceDesc, byte[] bytes, int offset, int length)
  • Method Details

    • close

      public void close() throws
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface
      Specified by:
      close in class
    • getFilePointer

      public long getFilePointer()
      Specified by:
      getFilePointer in class
    • seek

      public void seek​(long l) throws
      Specified by:
      seek in class
    • length

      public long length()
      Specified by:
      length in class
    • slice

      public slice​(java.lang.String sliceDescription, long offset, long length) throws
      Specified by:
      slice in class
    • readByte

      public byte readByte() throws
      Specified by:
      readByte in class
    • readBytes

      public void readBytes​(byte[] b, int offset, int len) throws
      Specified by:
      readBytes in class