public class ByteReader extends Object
| Constructor and Description |
|---|
ByteReader(byte[] bytes)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ByteOrder |
getByteOrder()
Get the byte order
|
int |
getNextByte()
Get the next byte to be read
|
byte |
readByte()
Read a byte
|
double |
readDouble()
Read a double
|
int |
readInt()
Read an integer
|
String |
readString(int num)
Read a String from the provided number of bytes
|
long |
readUnsignedInt()
Read an unsigned integer
|
void |
setByteOrder(ByteOrder byteOrder)
Set the byte order
|
public int getNextByte()
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
byteOrder - byte orderpublic String readString(int num) throws UnsupportedEncodingException
num - number of bytesUnsupportedEncodingException - upon errorpublic byte readByte()
public int readInt()
public long readUnsignedInt()
public double readDouble()
Copyright © 2019 National Geospatial-Intelligence Agency. All rights reserved.