AZS

com.a2zss.ISO8583
Class CCC

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

public class CCC
extends java.lang.Object

This class can be used for CCC cheksum calculation for certain ISO-8583 messages


Method Summary
static byte calcCCC(byte[] buf, int offs, int len)
           
static byte fromchar(byte in)
           
static byte tochar(byte in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

tochar

public static final byte tochar(byte in)
Parameters:
in -
Returns:
a character range of byte in+32

fromchar

public static final byte fromchar(byte in)
Returns:
a byte from character in-32

calcCCC

public static final byte calcCCC(byte[] buf,
                                 int offs,
                                 int len)
Returns:
a one byte cheksum from a byte array starting from specified offset and length

AZS

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