Class LiteralInterpreter

java.lang.Object
org.jpos.iso.LiteralInterpreter
All Implemented Interfaces:
Interpreter

public class LiteralInterpreter extends Object implements Interpreter
Implements a Literal Interpreter. No conversion is done.
  • Field Details

    • INSTANCE

      public static final LiteralInterpreter INSTANCE
      An instance of this Interpreter. Only one needed for the whole system
  • Constructor Details

  • Method Details

    • interpret

      public void interpret(String data, byte[] b, int offset)
      (non-Javadoc)
      Specified by:
      interpret in interface Interpreter
    • uninterpret

      public String uninterpret(byte[] rawData, int offset, int length)
      (non-Javadoc)
      Specified by:
      uninterpret in interface Interpreter
      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 interface Interpreter