public class SignedEbcdicNumberInterpreter extends java.lang.Object implements Interpreter
Modifier and Type | Field and Description |
---|---|
static SignedEbcdicNumberInterpreter |
INSTANCE
An instance of this Interpreter.
|
Constructor and Description |
---|
SignedEbcdicNumberInterpreter() |
Modifier and Type | Method and Description |
---|---|
int |
getPackedLength(int nDataUnits)
Returns the number of bytes required to interpret a String of length
nDataUnits.
|
void |
interpret(java.lang.String data,
byte[] targetArray,
int offset)
Converts the string data into a different interpretation.
|
java.lang.String |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the byte array into a String.
|
public static final SignedEbcdicNumberInterpreter INSTANCE
public void interpret(java.lang.String data, byte[] targetArray, int offset)
Interpreter
interpret
in interface Interpreter
public java.lang.String uninterpret(byte[] rawData, int offset, int length)
Interpreter
uninterpret
in interface Interpreter
rawData
- The interpreted data.offset
- The index in rawData to start interpreting at.length
- The number of data units to interpret.public int getPackedLength(int nDataUnits)
Interpreter
getPackedLength
in interface Interpreter