public class EbcdicBinaryInterpreter extends java.lang.Object implements BinaryInterpreter
| Modifier and Type | Field and Description |
|---|---|
static EbcdicBinaryInterpreter |
INSTANCE |
| Constructor and Description |
|---|
EbcdicBinaryInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPackedLength(int nDataUnits)
Returns the number of bytes required to interpret a byte array of length
nBytes.
|
void |
interpret(byte[] data,
byte[] b,
int offset)
(non-Javadoc)
|
byte[] |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the raw byte array into a uninterpreted byte array.
|
public static final EbcdicBinaryInterpreter INSTANCE
public void interpret(byte[] data,
byte[] b,
int offset)
interpret in interface BinaryInterpreterdata - The data to be interpreted.b - The byte array to write the interpreted data to.offset - The starting position in b.public byte[] uninterpret(byte[] rawData,
int offset,
int length)
BinaryInterpreteruninterpret in interface BinaryInterpreterrawData - The interpreted data.offset - The index in rawData to start uninterpreting at.length - The number of uninterpreted bytes to uninterpret. This number may be
different from the number of raw bytes that are uninterpreted.public int getPackedLength(int nDataUnits)
BinaryInterpretergetPackedLength in interface BinaryInterpreterInterpreter.getPackedLength(int)