|
||||||||||
| 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(String data,
byte[] b,
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. |
| Method Detail |
|---|
void interpret(String data,
byte[] b,
int offset)
throws ISOException
data - The data to be interpreted.
ISOException - on error
String uninterpret(byte[] rawData,
int offset,
int length)
throws ISOException
rawData - The interpreted data.offset - The index in rawData to start interpreting at.length - The number of data units to interpret.
ISOException - on errorint getPackedLength(int nDataUnits)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||