org.jpos.iso
Class EbcdicInterpreter

java.lang.Object
  extended by org.jpos.iso.EbcdicInterpreter
All Implemented Interfaces:
Interpreter

public class EbcdicInterpreter
extends Object
implements Interpreter

Implements EBCDIC Interpreter. Strings are converted to and from EBCDIC bytes.

Version:
$Revision$ $Date$
Author:
joconnor

Field Summary
static EbcdicInterpreter INSTANCE
          An instance of this Interpreter.
 
Constructor Summary
EbcdicInterpreter()
           
 
Method Summary
 int getPackedLength(int nDataUnits)
          (non-Javadoc)
 void interpret(String data, byte[] b, int offset)
          (non-Javadoc)
 String uninterpret(byte[] rawData, int offset, int length)
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EbcdicInterpreter INSTANCE
An instance of this Interpreter. Only one needed for the whole system

Constructor Detail

EbcdicInterpreter

public EbcdicInterpreter()
Method Detail

interpret

public void interpret(String data,
                      byte[] b,
                      int offset)
(non-Javadoc)

Specified by:
interpret in interface Interpreter
Parameters:
data - The data to be interpreted.
See Also:
org.jpos.iso.Interpreter#interpret(java.lang.String)

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.
See Also:
org.jpos.iso.Interpreter#uninterpret(byte[])

getPackedLength

public int getPackedLength(int nDataUnits)
(non-Javadoc)

Specified by:
getPackedLength in interface Interpreter
See Also:
Interpreter.getPackedLength(int)


Copyright © 1998-2012 jPOS.org. All Rights Reserved.