public class ByteOrderDataInStream
extends java.lang.Object
InStream
,
with the representation being in either common byte ordering.Modifier and Type | Field and Description |
---|---|
private byte[] |
buf1 |
private byte[] |
buf4 |
private byte[] |
buf8 |
private int |
byteOrder |
private InStream |
stream |
Constructor and Description |
---|
ByteOrderDataInStream() |
ByteOrderDataInStream(InStream stream) |
Modifier and Type | Method and Description |
---|---|
byte |
readByte()
Reads a byte value
|
double |
readDouble() |
int |
readInt() |
long |
readLong() |
void |
setInStream(InStream stream)
Allows a single ByteOrderDataInStream to be reused
on multiple InStreams.
|
void |
setOrder(int byteOrder) |
private int byteOrder
private InStream stream
private byte[] buf1
private byte[] buf4
private byte[] buf8
public ByteOrderDataInStream()
public ByteOrderDataInStream(InStream stream)
public void setInStream(InStream stream)
stream
- public void setOrder(int byteOrder)
public byte readByte() throws java.io.IOException
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public long readLong() throws java.io.IOException
java.io.IOException
public double readDouble() throws java.io.IOException
java.io.IOException