|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.a2zss.ISO8583.Config
public class Config
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 |
---|
public static final java.lang.String[] ISOfhNames
Constructor Detail |
---|
public Config()
Method Detail |
---|
public boolean isPackedTrack2PaddedRightWithF()
public void setPackedTrack2PaddedRightWithF(boolean packedTrack2PaddedRightWithF)
packedTrack2PaddedRightWithF
- public boolean isPackedTrack2PaddedRightWith0()
public void setPackedTrack2PaddedRightWith0(boolean packedTrack2PaddedRightWith0)
packedTrack2PaddedRightWith0
- public boolean isPackedTrack3PaddedRightWithF()
public void setPackedTrack3PaddedRightWithF(boolean packedTrack3PaddedRightWithF)
packedTrack3PaddedRightWithF
- public int getType(int bit)
bit
- - the bit number to query
public final int getType(int bit, int ver)
bit
- - the bit number to queryver
- - the iso version 0 or 1
public final void setCustomType(int bit, int ver, int type)
bit
- the field nmber ad sefined in ISOBitsver
- the ISO8583 version (0, 1 or 2)type
- the custom field type as defined in Type interfacepublic final void setCustomMaxLength(int bit, int ver, int len)
bit
- the field nmberver
- the ISO8583 version (0 1 or 2)len
- the custom field length in bytes (0..999)public final int getMaxLength(int bit, int v)
bit
- the field nmber to query (0-128)v
- the ISO8583 version (0 or 1)
public final int getMaxLength(int bit)
bit
- the field number to query (0-128)
public final void setBitmapFormat(boolean hex)
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)public final boolean getBitmapFormat()
public static void main(java.lang.String[] args)
args
- public final void printConfig(java.io.PrintStream out)
out
- - the printsream where to print configpublic final boolean getBinpackedlength()
public final void setBinpackedlength(boolean binpackedlength)
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 integerspublic boolean isEbcdic()
public void setEbcdic(boolean ebcdic)
ebcdic
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |