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 fileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.store.RandomAccessInput
isLoaded, prefetch, readBytes
-
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:
-