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