AZS

com.a2zss.ISO8583
Class Config

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

public class Config
extends java.lang.Object

This class is for defining the runtime configuretion of the SDK


Field Summary
static java.lang.String[] ISOfhNames
           
 
Constructor Summary
Config()
           
 
Method Summary
 boolean getBinpackedlength()
          Method getBinpackedlength
 boolean getBitmapFormat()
           
 int getMaxLength(int bit)
           
 int getMaxLength(int bit, int v)
           
 int getType(int bit)
          Gets the ISO8583 field type of ISOField object with specified bitno
 int getType(int bit, int ver)
          Gets the ISO8583 field type of ISOField object with specified bitno and ISO8583 version
 boolean isEbcdic()
           
 boolean isPackedTrack2PaddedRightWith0()
           
 boolean isPackedTrack2PaddedRightWithF()
           
 boolean isPackedTrack3PaddedRightWithF()
           
static void main(java.lang.String[] args)
          To print out the default config
 void printConfig(java.io.PrintStream out)
           
 void setBinpackedlength(boolean binpackedlength)
          Method setBinpackedlength
 void setBitmapFormat(boolean hex)
          to set a bitmap format to hex or binary
 void setCustomMaxLength(int bit, int ver, int len)
          sets the customized field max length for specified ISO8583 (bit number) and for cpecified version (0, 1, 2)
 void setCustomType(int bit, int ver, int type)
          sets the customized field type for specified ISO8583 (bit number) and for cpecified version (0, 1, 2)
 void setEbcdic(boolean ebcdic)
          Experimental EBCDIC feature if set to true *parsePlain and *formatPlain methods will parse and format character and numeric fields and field lengths as EBCDIC characters
 void setPackedTrack2PaddedRightWith0(boolean packedTrack2PaddedRightWith0)
          set true if track2 type data in packed form is padded with 0 at the end instead 0 at the beginning or instead of the F at the end
 void setPackedTrack2PaddedRightWithF(boolean packedTrack2PaddedRightWithF)
          set true if track2 type data in packed form is padded with F at the end instead 0 at the beginning
 void setPackedTrack3PaddedRightWithF(boolean packedTrack3PaddedRightWithF)
          set true if track3 type data in packed form is padded with F at the end instead 0 at the beginning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISOfhNames

public static final java.lang.String[] ISOfhNames
Constructor Detail

Config

public Config()
Method Detail

isPackedTrack2PaddedRightWithF

public boolean isPackedTrack2PaddedRightWithF()
Returns:

setPackedTrack2PaddedRightWithF

public void setPackedTrack2PaddedRightWithF(boolean packedTrack2PaddedRightWithF)
set true if track2 type data in packed form is padded with F at the end instead 0 at the beginning

Parameters:
packedTrack2PaddedRightWithF -

isPackedTrack2PaddedRightWith0

public boolean isPackedTrack2PaddedRightWith0()

setPackedTrack2PaddedRightWith0

public void setPackedTrack2PaddedRightWith0(boolean packedTrack2PaddedRightWith0)
set true if track2 type data in packed form is padded with 0 at the end instead 0 at the beginning or instead of the F at the end

Parameters:
packedTrack2PaddedRightWith0 -

isPackedTrack3PaddedRightWithF

public boolean isPackedTrack3PaddedRightWithF()

setPackedTrack3PaddedRightWithF

public void setPackedTrack3PaddedRightWithF(boolean packedTrack3PaddedRightWithF)
set true if track3 type data in packed form is padded with F at the end instead 0 at the beginning

Parameters:
packedTrack3PaddedRightWithF -

getType

public int getType(int bit)
Gets the ISO8583 field type of ISOField object with specified bitno

Parameters:
bit - - the bit number to query
Returns:
the type of field

getType

public final int getType(int bit,
                         int ver)
Gets the ISO8583 field type of ISOField object with specified bitno and ISO8583 version

Parameters:
bit - - the bit number to query
ver - - the iso version 0 or 1
Returns:
the type of field

setCustomType

public final void setCustomType(int bit,
                                int ver,
                                int type)
sets the customized field type for specified ISO8583 (bit number) and for cpecified version (0, 1, 2)

Parameters:
bit - the field nmber ad sefined in ISOBits
ver - the ISO8583 version (0, 1 or 2)
type - the custom field type as defined in Type interface

setCustomMaxLength

public final void setCustomMaxLength(int bit,
                                     int ver,
                                     int len)
sets the customized field max length for specified ISO8583 (bit number) and for cpecified version (0, 1, 2)

Parameters:
bit - the field nmber
ver - the ISO8583 version (0 1 or 2)
len - the custom field length in bytes (0..999)

getMaxLength

public final int getMaxLength(int bit,
                              int v)
Parameters:
bit - the field nmber to query (0-128)
v - the ISO8583 version (0 or 1)
Returns:
the max length for ISOField specified by bit number and ISO version (0, 1) or -1 if such field does not exsist

getMaxLength

public final int getMaxLength(int bit)
Parameters:
bit - the field number to query (0-128)
Returns:
the max length for ISOField specified by bit number (version 0)

setBitmapFormat

public final void setBitmapFormat(boolean hex)
to set a bitmap format to hex or binary

Parameters:
hex - true if the required format for parser/formatter is hex (16 bytes) or false (default setting) if bitmap is in binrary format (8 bytes)

getBitmapFormat

public final boolean getBitmapFormat()

main

public static void main(java.lang.String[] args)
To print out the default config

Parameters:
args -

printConfig

public final void printConfig(java.io.PrintStream out)
Parameters:
out - - the printsream where to print config

getBinpackedlength

public final boolean getBinpackedlength()
Method getBinpackedlength

Returns:
Returns the binpackedlength.

setBinpackedlength

public final void setBinpackedlength(boolean binpackedlength)
Method setBinpackedlength

Parameters:
binpackedlength - The binpackedlength to set. dafault is false and then lengths of fields in parsePacked are assumed 4bit bcd packed if true lengths of fields in parsePacked are assumed as binary packed integers

isEbcdic

public boolean isEbcdic()
Returns:

setEbcdic

public void setEbcdic(boolean ebcdic)
Experimental EBCDIC feature if set to true *parsePlain and *formatPlain methods will parse and format character and numeric fields and field lengths as EBCDIC characters

Parameters:
ebcdic -

AZS

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