|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.SignedEbcdicNumberInterpreter
public class SignedEbcdicNumberInterpreter
Implements EBCDIC Interpreter for signed numerics. (see http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad06900_.htm) Strings are converted to and from EBCDIC bytes. Negatives will be prepended with "-" Unsigned numbers are interpreted as positive
| Field Summary | |
|---|---|
static SignedEbcdicNumberInterpreter |
INSTANCE
An instance of this Interpreter. |
| Constructor Summary | |
|---|---|
SignedEbcdicNumberInterpreter()
|
|
| Method Summary | |
|---|---|
int |
getPackedLength(int nDataUnits)
Returns the number of bytes required to interpret a String of length nDataUnits. |
void |
interpret(String data,
byte[] targetArray,
int offset)
Converts the string data into a different interpretation. |
String |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the byte array into a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SignedEbcdicNumberInterpreter INSTANCE
| Constructor Detail |
|---|
public SignedEbcdicNumberInterpreter()
| Method Detail |
|---|
public void interpret(String data,
byte[] targetArray,
int offset)
Interpreter
interpret in interface Interpreterdata - The data to be interpreted.
public String uninterpret(byte[] rawData,
int offset,
int length)
Interpreter
uninterpret 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)
Interpreter
getPackedLength in interface Interpreter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||