Constructor and Description |
---|
ByteOrderDataInStream() |
ByteOrderDataInStream(InStream stream) |
Modifier and Type | Method and Description |
---|---|
long |
getCount()
Gets the number of bytes read from the stream.
|
byte[] |
getData()
Gets the data item that was last read from the stream.
|
byte |
readByte()
Reads a byte value.
|
double |
readDouble()
Reads a double value.
|
int |
readInt()
Reads an int value.
|
long |
readLong()
Reads a long value.
|
void |
setInStream(InStream stream)
Allows a single ByteOrderDataInStream to be reused
on multiple InStreams.
|
void |
setOrder(int byteOrder)
Sets the ordering on the stream using the codes in
ByteOrderValues . |
public ByteOrderDataInStream()
public ByteOrderDataInStream(InStream stream)
public void setInStream(InStream stream)
stream
- public void setOrder(int byteOrder)
ByteOrderValues
.byteOrder
- the byte order codepublic long getCount()
public byte[] getData()
public byte readByte() throws IOException, ParseException
IOException
- if an I/O error occurredParseException
- if not enough data could be readpublic int readInt() throws IOException, ParseException
IOException
- if an I/O error occurredParseException
- if not enough data could be readpublic long readLong() throws IOException, ParseException
IOException
- if an I/O error occurredParseException
- if not enough data could be readpublic double readDouble() throws IOException, ParseException
IOException
- if an I/O error occurredParseException
- if not enough data could be readCopyright © 2024. All rights reserved.