|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.LiteralBinaryInterpreter
public class LiteralBinaryInterpreter
This interpreter does no conversion and leaves the input the same as the output.
| Field Summary | |
|---|---|
static LiteralBinaryInterpreter |
INSTANCE
The only instance of this interpreter. |
| Method Summary | |
|---|---|
int |
getPackedLength(int nBytes)
Returns nBytes because we are not doing any conversion. |
void |
interpret(byte[] data,
byte[] b,
int offset)
Copies the input to the output. |
byte[] |
uninterpret(byte[] rawData,
int offset,
int length)
Copies the data out of the byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LiteralBinaryInterpreter INSTANCE
| 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||