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)
Interpreterinterpret in interface Interpreterpublic java.lang.String uninterpret(byte[] rawData,
int offset,
int length)
Interpreteruninterpret in interface InterpreterrawData - 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)
InterpretergetPackedLength in interface Interpreter