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 DataInput getInput()
public int readUnsignedByte() throws IOException
IOException
public double readLittleDouble() throws IOException
IOException
- If an exception occurs while reading the data.public double readBigDouble() throws IOException
IOException
- If an exception occurs while reading the data.public int readLittleInt() throws IOException
IOException
- If an exception occurs while reading the data.public int readBigInt() throws IOException
IOException
- If an exception occurs while reading the data.public long readBigUnsignedInt() throws IOException
IOException
- If an exception occurs while reading the data.public short readLittleShort() throws IOException
IOException
- If an exception occurs while reading the data.public short readBigShort() throws IOException
IOException
- If an exception occurs while reading the data.public int readBigUnsignedShort() throws IOException
IOException
- If an exception occurs while reading the data.public 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 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 long getIndex()
public 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 byte readByte() throws IOException
IOException
- If an exception occurs while reading the data.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.