- All Known Implementing Classes:
BufferedIndexInput
,BufferedIndexInput.SlicedIndexInput
,ByteBufferIndexInput
,ByteBufferIndexInput.MultiBufferImpl
,ByteBufferIndexInput.SingleBufferImpl
,ByteBuffersDataInput
,ByteBuffersIndexInput
,EndiannessReverserIndexInput.EndiannessReverserRandomAccessInput
,NIOFSDirectory.NIOFSIndexInput
,RAFDirectory.RAFIndexInput
public interface RandomAccessInput
Random Access Index API. Unlike
IndexInput
, this has no concept of file position, all
reads are absolute. However, like IndexInput, it is only intended for use by a single thread.-
Method Summary
Modifier and TypeMethodDescriptionbyte
readByte
(long pos) Reads a byte at the given position in the fileint
readInt
(long pos) Reads an integer (LE byte order) at the given position in the filelong
readLong
(long pos) Reads a long (LE byte order) at the given position in the fileshort
readShort
(long pos) Reads a short (LE byte order) at the given position in the file
-
Method Details
-
readByte
Reads a byte at the given position in the file- Throws:
IOException
- See Also:
-
readShort
Reads a short (LE byte order) at the given position in the file- Throws:
IOException
- See Also:
-
readInt
Reads an integer (LE byte order) at the given position in the file- Throws:
IOException
- See Also:
-
readLong
Reads a long (LE byte order) at the given position in the file- Throws:
IOException
- See Also:
-