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 java.lang.Object implements RandomAccessInput
ARandomAccessInputwrapper that changes the endianness of the provided index input.
-
-
Field Summary
Fields Modifier and Type Field Description private RandomAccessInputin
-
Constructor Summary
Constructors Constructor Description EndiannessReverserRandomAccessInput(RandomAccessInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 file
-
-
-
Field Detail
-
in
private final RandomAccessInput in
-
-
Constructor Detail
-
EndiannessReverserRandomAccessInput
public EndiannessReverserRandomAccessInput(RandomAccessInput in)
-
-
Method Detail
-
readByte
public byte readByte(long pos) throws java.io.IOExceptionDescription copied from interface:RandomAccessInputReads a byte at the given position in the file- Specified by:
readBytein interfaceRandomAccessInput- Throws:
java.io.IOException- See Also:
DataInput.readByte()
-
readShort
public short readShort(long pos) throws java.io.IOExceptionDescription copied from interface:RandomAccessInputReads a short (LE byte order) at the given position in the file- Specified by:
readShortin interfaceRandomAccessInput- Throws:
java.io.IOException- See Also:
DataInput.readShort(),BitUtil.VH_LE_SHORT
-
readInt
public int readInt(long pos) throws java.io.IOExceptionDescription copied from interface:RandomAccessInputReads an integer (LE byte order) at the given position in the file- Specified by:
readIntin interfaceRandomAccessInput- Throws:
java.io.IOException- See Also:
DataInput.readInt(),BitUtil.VH_LE_INT
-
readLong
public long readLong(long pos) throws java.io.IOExceptionDescription copied from interface:RandomAccessInputReads a long (LE byte order) at the given position in the file- Specified by:
readLongin interfaceRandomAccessInput- Throws:
java.io.IOException- See Also:
DataInput.readLong(),BitUtil.VH_LE_LONG
-
-