Package org.jpos.iso
Class LiteralInterpreter
- java.lang.Object
-
- org.jpos.iso.LiteralInterpreter
-
- All Implemented Interfaces:
Interpreter
public class LiteralInterpreter extends java.lang.Object implements Interpreter
Implements a Literal Interpreter. No conversion is done.
-
-
Field Summary
Fields Modifier and Type Field Description static LiteralInterpreter
INSTANCE
An instance of this Interpreter.
-
Constructor Summary
Constructors Constructor Description LiteralInterpreter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPackedLength(int nDataUnits)
(non-Javadoc)void
interpret(java.lang.String data, byte[] b, int offset)
(non-Javadoc)java.lang.String
uninterpret(byte[] rawData, int offset, int length)
(non-Javadoc)
-
-
-
Field Detail
-
INSTANCE
public static final LiteralInterpreter INSTANCE
An instance of this Interpreter. Only one needed for the whole system
-
-
Constructor Detail
-
LiteralInterpreter
public LiteralInterpreter()
-
-
Method Detail
-
interpret
public void interpret(java.lang.String data, byte[] b, int offset)
(non-Javadoc)- Specified by:
interpret
in interfaceInterpreter
-
uninterpret
public java.lang.String uninterpret(byte[] rawData, int offset, int length)
(non-Javadoc)- Specified by:
uninterpret
in interfaceInterpreter
- Parameters:
rawData
- The interpreted data.offset
- The index in rawData to start interpreting at.length
- The number of data units to interpret.- Returns:
- The uninterpreted data.
-
getPackedLength
public int getPackedLength(int nDataUnits)
(non-Javadoc)- Specified by:
getPackedLength
in interfaceInterpreter
-
-