public class BeLeDataInputStream extends DataInputStream
Constructor and Description |
---|
BeLeDataInputStream(InputStream inputStream)
Construct a bigEndian-littleEndian input stream from an input stream.
|
BeLeDataInputStream(String filename)
Construct a bigEndian-littleEndian input stream from a file.
|
BeLeDataInputStream(URL url)
Construct a bigEndian-littleEndian input stream from a URL.
|
Modifier and Type | Method and Description |
---|---|
double |
readLEDouble()
read a double in little endian format
|
void |
readLEDoubles(double[] d,
int n)
Reads
n little-endian doubles from a random access file. |
int |
readLEInt()
read an int in little endian format
|
long |
readLELong()
read a long in little endian format
|
void |
readLELongs(long[] lbuf,
int n)
Reads
n little-endian longs from a random access file. |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
available, close, mark, markSupported, read, reset, skip
public BeLeDataInputStream(InputStream inputStream)
inputStream
- from which to readpublic BeLeDataInputStream(String filename) throws IOException
filename
- of fileIOException
public BeLeDataInputStream(URL url) throws IOException
url
- of remote dataIOException
public int readLEInt() throws IOException
IOException
public double readLEDouble() throws IOException
IOException
public final void readLEDoubles(double[] d, int n) throws IOException
n
little-endian doubles from a random access file.
This method is provided for speed when accessing a number of consecutive values of the same type.
d
- the buffer into which the doubles are readn
- number of little-endian doubles to readIOException
public long readLELong() throws IOException
IOException
public final void readLELongs(long[] lbuf, int n) throws IOException
n
little-endian longs from a random access file.
This method is provided for speed when accessing a number of consecutive values of the same type.
lbuf
- the buffer into which the longs are readn
- the number of little-endian longs to readIOException