|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BinaryInterpreter
This interface supports the encoding and decoding of binary data. Common implementations are literal or no conversion, ASCII Hex, EBCDIC Hex and BCD.
| Method Summary | |
|---|---|
int |
getPackedLength(int nBytes)
Returns the number of bytes required to interpret a byte array of length nBytes. |
void |
interpret(byte[] data,
byte[] b,
int offset)
Converts the binary data into a different interpretation or coding. |
byte[] |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the raw byte array into a uninterpreted byte array. |
| Method Detail |
|---|
void interpret(byte[] data,
byte[] b,
int offset)
data - The data to be interpreted.b - The byte array to write the interpreted data to.offset - The starting position in b.
byte[] uninterpret(byte[] rawData,
int offset,
int length)
rawData - 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.
int getPackedLength(int nBytes)
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||