Class EndiannessReverserIndexInput.EndiannessReverserRandomAccessInput
java.lang.Object
org.apache.lucene.backward_codecs.store.EndiannessReverserIndexInput.EndiannessReverserRandomAccessInput
- All Implemented Interfaces:
RandomAccessInput
- Enclosing class:
EndiannessReverserIndexInput
public static class EndiannessReverserIndexInput.EndiannessReverserRandomAccessInput
extends Object
implements RandomAccessInput
A
RandomAccessInput
wrapper that changes the endianness of the provided index input.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
length()
The number of bytes in the file.byte
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
-
Field Details
-
in
-
-
Constructor Details
-
EndiannessReverserRandomAccessInput
-
-
Method Details
-
length
public long length()Description copied from interface:RandomAccessInput
The number of bytes in the file.- Specified by:
length
in interfaceRandomAccessInput
-
readByte
Description copied from interface:RandomAccessInput
Reads a byte at the given position in the file- Specified by:
readByte
in interfaceRandomAccessInput
- Throws:
IOException
- See Also:
-
readShort
Description copied from interface:RandomAccessInput
Reads a short (LE byte order) at the given position in the file- Specified by:
readShort
in interfaceRandomAccessInput
- Throws:
IOException
- See Also:
-
readInt
Description copied from interface:RandomAccessInput
Reads an integer (LE byte order) at the given position in the file- Specified by:
readInt
in interfaceRandomAccessInput
- Throws:
IOException
- See Also:
-
readLong
Description copied from interface:RandomAccessInput
Reads a long (LE byte order) at the given position in the file- Specified by:
readLong
in interfaceRandomAccessInput
- Throws:
IOException
- See Also:
-