AZS

com.a2zss.ISO8583
Class Encoder

java.lang.Object
  extended by com.a2zss.ISO8583.Encoder

public class Encoder
extends java.lang.Object

Encodes characters to printable range & # ~ things... 0x20...0x7E as is 0x01...0x1F # + x 0x80...0xFF & + x


Method Summary
static byte[] decode(byte[] in)
          decodes the actual encoded bytes incl cflag and ccc
static byte[] encode(byte[] in)
           
static byte fromChar(byte in)
          converts single byte value car value to sigle number char value param 32 returns 0
static byte toChar(byte in)
          converts single byte value to sigle number char value param 0 returns 32
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static final byte[] decode(byte[] in)
decodes the actual encoded bytes incl cflag and ccc

Parameters:
in -
Returns:
decode bytes

encode

public static final byte[] encode(byte[] in)
Parameters:
in -
Returns:
encoded (into printable chars) data block from plain data

toChar

public static final byte toChar(byte in)
converts single byte value to sigle number char value param 0 returns 32


fromChar

public static final byte fromChar(byte in)
converts single byte value car value to sigle number char value param 32 returns 0


AZS

Copyright © 2002-2010 AZS Services Ltd. All Rights Reserved.