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 TypeMethodDescriptionlonglength()The number of bytes in the file.bytereadByte(long pos) Reads a byte at the given position in the fileintreadInt(long pos) Reads an integer (LE byte order) at the given position in the filelongreadLong(long pos) Reads a long (LE byte order) at the given position in the fileshortreadShort(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, waitMethods 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:RandomAccessInputThe number of bytes in the file.- Specified by:
lengthin interfaceRandomAccessInput
-
readByte
Description copied from interface:RandomAccessInputReads a byte at the given position in the file- Specified by:
readBytein interfaceRandomAccessInput- Throws:
IOException- See Also:
-
readShort
Description copied from interface:RandomAccessInputReads a short (LE byte order) at the given position in the file- Specified by:
readShortin interfaceRandomAccessInput- Throws:
IOException- See Also:
-
readInt
Description copied from interface:RandomAccessInputReads an integer (LE byte order) at the given position in the file- Specified by:
readIntin interfaceRandomAccessInput- Throws:
IOException- See Also:
-
readLong
Description copied from interface:RandomAccessInputReads a long (LE byte order) at the given position in the file- Specified by:
readLongin interfaceRandomAccessInput- Throws:
IOException- See Also:
-