public final class IlvMapInput extends Object
Constructor and Description |
---|
IlvMapInput(DataInput input)
Initializes an instance of
IlvMapInput . |
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Returns the current index in the stream.
|
DataInput |
getInput()
Returns the input data.
|
void |
read(byte[] data,
int off,
int length)
Reads up to
length bytes of data from the specified file and stores it
in a byte array. |
double |
readBigDouble()
Reads a 64-bit IIIE double coded in big endian format.
|
int |
readBigInt()
Reads a 32-bit integer coded in big endian format.
|
short |
readBigShort()
Reads a 16-bit integer coded in big endian format.
|
long |
readBigUnsignedInt()
Reads a 32-bit unsigned integer coded in big endian format.
|
int |
readBigUnsignedShort()
Reads a 16-bit unsigned integer coded in big endian format.
|
byte |
readByte()
Reads and returns one input byte.
|
double |
readLittleDouble()
Reads a 64-bit IIIE double coded in little endian format.
|
int |
readLittleInt()
Reads a 32-bit integer coded in little endian format.
|
short |
readLittleShort()
Reads a 16-bit integer coded in little endian format.
|
int |
readUnsignedByte()
Reads an unsigned byte.
|
void |
setLocation(long loc)
Sets the location where the next read operation will occur to the specified index.
|
int |
skipBytes(int n)
Skips exactly n bytes of input.
|
public IlvMapInput(DataInput input)
IlvMapInput
.input
- The input data.public final DataInput getInput()
public final int readUnsignedByte() throws IOException
IOException
public final double readLittleDouble() throws IOException
IOException
- If an exception occurs while reading the data.public final double readBigDouble() throws IOException
IOException
- If an exception occurs while reading the data.public final int readLittleInt() throws IOException
IOException
- If an exception occurs while reading the data.public final int readBigInt() throws IOException
IOException
- If an exception occurs while reading the data.public final long readBigUnsignedInt() throws IOException
IOException
- If an exception occurs while reading the data.public final short readLittleShort() throws IOException
IOException
- If an exception occurs while reading the data.public final short readBigShort() throws IOException
IOException
- If an exception occurs while reading the data.public final int readBigUnsignedShort() throws IOException
IOException
- If an exception occurs while reading the data.public final int skipBytes(int n) throws IOException
n
- The number of bytes to be skipped.IOException
- If the end of this stream is reached before
all the bytes have been skipped or if the argument is negative and
the backward seeking is not supported.public final void setLocation(long loc) throws IOException
loc
- The index where the next read operation will occur.IOException
- If an errors occurs while setting location.getIndex()
public final long getIndex()
public final void read(byte[] data, int off, int length) throws IOException
length
bytes of data from the specified file and stores it
in a byte array.IOException
- If an exception occurs while reading the data.public final byte readByte() throws IOException
IOException
- If an exception occurs while reading the data.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.