|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Interpreter
Implementations convert Strings into byte arrays and vice versa.
| Method Summary | |
|---|---|
int |
getPackedLength(int nDataUnits)
Returns the number of bytes required to interpret a String of length nDataUnits. |
void |
interpret(java.lang.String data,
byte[] b,
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. |
| Method Detail |
|---|
void interpret(java.lang.String data,
byte[] b,
int offset)
data - The data to be interpreted.
java.lang.String uninterpret(byte[] rawData,
int offset,
int length)
rawData - The interpreted data.offset - The index in rawData to start interpreting at.length - The number of data units to interpret.
int getPackedLength(int nDataUnits)
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||