|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.iso.AsciiHexInterpreter
public class AsciiHexInterpreter
Implements Hex Interpreter. The Hex digits are stored in ASCII.
| Field Summary | |
|---|---|
static AsciiHexInterpreter |
INSTANCE
An instance of this Interpreter. |
| Constructor Summary | |
|---|---|
AsciiHexInterpreter()
|
|
| Method Summary | |
|---|---|
int |
getPackedLength(int nBytes)
Returns double nBytes because the hex representation of 1 byte needs 2 hex digits. |
void |
interpret(byte[] data,
byte[] b,
int offset)
Converts the binary data into ASCII hex digits. |
byte[] |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the ASCII hex digits into binary data. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AsciiHexInterpreter INSTANCE
| Constructor Detail |
|---|
public AsciiHexInterpreter()
| Method Detail |
|---|
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.BinaryInterpreter.interpret(byte[], byte[], int)
public byte[] uninterpret(byte[] rawData,
int offset,
int length)
uninterpret 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.
BinaryInterpreter.uninterpret(byte[], int, int)public int getPackedLength(int nBytes)
getPackedLength in interface BinaryInterpreterBinaryInterpreter.getPackedLength(int)
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||