AZS

com.a2zss.ISO8583
Class ISOField

java.lang.Object
  extended by com.a2zss.ISO8583.ISOField
All Implemented Interfaces:
ISOBits, java.io.Serializable
Direct Known Subclasses:
Bitmap

public class ISOField
extends java.lang.Object
implements ISOBits, java.io.Serializable

This class creates a ISOField object for use with other ISO 8583 classes in this package The application can use this object for ISO message creation

See Also:
Message, ISO8583II, Serialized Form

Field Summary
 
Fields inherited from interface com.a2zss.ISO8583.ISOBits
F_MTI, F0_BITMAP0, F1_BITMAP1, F10_CONVRATE_BIL, F100_RECE_INSTID, F101_FILE_NAME, F102_ACCOUNT_ID1, F103_ACCOUNT_ID2, F104_TR_DESCR, F105_CREDIT_CBAMOUNT, F106_DEBIT_CBAMOUNT, F107_CREDIT_CBNUMBER, F108_DEBIT_CBNUMBER, F109_CREDIT_FEEAMOUNT, F11_STAN, F110_DEBIT_FEEAMOUNT, F111, F112, F113, F114, F115, F116, F117, F118, F119, F12_DATE_TIME, F12_DATE_TIME_LTR, F120, F121, F122, F123, F124, F125, F126, F127, F128, F128_MSG_AUTH_CODE_FIELD, F13_DATE_EFF, F14_DATE_EXP, F15_DATE_SETTL, F16_DATE_CONV, F17_DATE_CAPTURE, F18_MCC, F19_COUNTRY_ACQID, F2_PAN, F20_COUNTRY_PAN, F21_COUNTRY_FID, F22_POSDATACODE, F23_CARDSEQNO, F24_FUNCTIONCODE, F25_MSGREASONCODE, F26_CARDACBUSCODE, F27_APPR_CODE_LENGTH, F28_DATE_REC, F29_REC_IND, F3_PROC_CODE, F30_AMOUNT_ORIG, F31_AQREFDATA, F32_AQID, F33_FID, F34_PAN_EXT, F35_TRACK2, F36_TRACK3, F37_RETR_REFNO, F38_APPR_CODE, F39_ACTION_CODE, F4_AMOUNT_TR, F40_SERVICE_CODE, F41_TERMINAL_ID, F42_CARDACC_ID, F43_CARDACC_NAMLOC, F44_ADD_RESPDATA, F45_TRACK1, F46_AMOUNT_FEES, F47_ADD_DATA_NATIONAL, F48_ADD_DATA_PRIVATE, F49_CURRENCY_TR, F5_AMOUNT_REC, F50_CURRENCY_REC, F51_CURRENCY_BIL, F52_PIN_DATA, F53_SECURITY_CONTROLINFO, F54_AMOUNT_ADD, F55_ICC_DATA, F56_ORIG_DATAELEMS, F57_AUTH_LCCODE, F58_AUTH_AGID, F59_TRANSPORT_DATA, F6_AMOUNT_BIL, F60, F61, F62, F63, F64_MSG_AUTHENTCFIELD, F65, F66_AMOUNT_ORIGFEES, F67_EXT_PAYDATA, F68_COUNTRY_RID, F69_COUNTRY_SETTLID, F7_DATETIME_TR, F70_COUNTRY_AUTHAGID, F71_MSGNO, F72_DATA_RECORD, F73_DATE_ACTION, F74_CREDITS_NUMBER, F75_CREDITS_REVERSAL_NUMBER, F76_DEBITS_NUMBER, F77_DEBITS_REVERSAL_NUMBER, F78_TRANSFER_NUMBER, F79_TRANSFER_REVERSAL_NUMBER, F8_AMOUNT_BILFEE, F80_INQUIRIES_NUMBER, F81_AUTHORIZATIONS_NUMBER, F82_INQUIRIES_REVERSAL_NUMBER, F83_PAYMENTS_NUMBER, F84_PAYMENTS_REVERSAL_NUMBER, F85_FEE_COLL_NUMBER, F86_CREDITS_AMOUNT, F87_CREDITS_REVERSAL_AMOUNT, F88_DEBITS_AMOUNT, F89_DEBITS_REVERSAL_AMOUNT, F9_CONVRATE_REC, F90_ORIG_MSG_ID_INFO, F91_COUNTRY_TR_DESTID, F92_COUNTRY_TR_ORIGID, F93_TR_DESTID, F94_TR_ORIGID, F95_CARD_ISSREFDATA, F96_KEY_MAN_DATA, F97_AMOUNT_NET_REC, F98_PAYEE, F99_SETLL_INSTID, FF_FOT, FH_DCP, FH_IDENT, MTI
 
Constructor Summary
ISOField()
          Creates an empty ISOField object with no data
ISOField(int bit, byte[] buf, Config c)
          Creates an ISOField object with specified bitno and data buffer (version 0)
ISOField(int bit, byte[] buf, int v, Config c)
          Creates an ISOField object with specified bitno and data buffer and ISO8583 version
ISOField(int bit, byte[] buf, int offs, int len, Config c)
          Creates an ISOField object with specified bitno and data buffer (version 0)
ISOField(int bit, byte[] buf, int offs, int len, int v, Config c)
          Creates an ISOField object with specified bitno and data buffer
ISOField(int bit, java.lang.String value, Config c)
          Creates an ISOField object with specified bitno and String value (version 0)
ISOField(int bit, java.lang.String value, int v, Config c)
          Creates an ISOField object with specified bitno and String value and ISO8583 version
ISOField(ISOField fiel)
          Creates a new ISOField object independent copy/clone from current object
 
Method Summary
 byte[] getBinaryValue()
           
 byte[] getBinLenPackedValue()
          Method getBinLenPackedValue
 int getBitNo()
          Method getBitNo
 int getLength()
           
 long getLongValue()
           
 int getMaxLength()
           
 byte[] getPackedValue()
           
 byte[] getPlainValue()
           
 byte[] getPlainValue(boolean ebcdic)
           
 java.lang.String getStringValue()
           
 int getType()
          Gets the ISO8583 field type of this ISOField object
 int getVersion()
          Gets the ISO8583 version info of this ISOField object
 void setValue(byte[] b)
          Sets the byte value of ISOFieled object
 void setValue(java.lang.String value)
          Sets the String value of ISOField object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ISOField

public ISOField()
Creates an empty ISOField object with no data


ISOField

public ISOField(int bit,
                byte[] buf,
                Config c)
Creates an ISOField object with specified bitno and data buffer (version 0)

Parameters:
bit - indicates the ISO8583 field number
buf - the data for this field
c - - the config

ISOField

public ISOField(int bit,
                byte[] buf,
                int v,
                Config c)
Creates an ISOField object with specified bitno and data buffer and ISO8583 version

Parameters:
bit - indicates the ISO8583 field number
buf - the data for this field
v - ISO8583 version 0 or 1
c - - the config

ISOField

public ISOField(int bit,
                byte[] buf,
                int offs,
                int len,
                Config c)
Creates an ISOField object with specified bitno and data buffer (version 0)

Parameters:
bit - indicates the ISO8583 field number
buf - the data for this field
offs - the offset to start
len - the data length
c - - the config

ISOField

public ISOField(int bit,
                byte[] buf,
                int offs,
                int len,
                int v,
                Config c)
Creates an ISOField object with specified bitno and data buffer

Parameters:
bit - indicates the ISO8583 field number
buf - the data for this field
offs - the offset to start
len - the data length
v - ISO8583 version 0 or 1
c - - the config

ISOField

public ISOField(int bit,
                java.lang.String value,
                Config c)
Creates an ISOField object with specified bitno and String value (version 0)

Parameters:
c - - the config
bit - indicates the ISO8583 field number
value -

ISOField

public ISOField(int bit,
                java.lang.String value,
                int v,
                Config c)
Creates an ISOField object with specified bitno and String value and ISO8583 version

Parameters:
bit - indicates the ISO8583 field number
value - the data for this field
v - ISO8583 version 0 or 1
c - - the config

ISOField

public ISOField(ISOField fiel)
Creates a new ISOField object independent copy/clone from current object

Parameters:
fiel - - the field to clone
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the String value of ISOField object

Parameters:
value - - the value

setValue

public void setValue(byte[] b)
Sets the byte value of ISOFieled object

Parameters:
b - - the binary value

getVersion

public final int getVersion()
Gets the ISO8583 version info of this ISOField object

Returns:
the version

getType

public final int getType()
Gets the ISO8583 field type of this ISOField object

Returns:
the field type constant

getBitNo

public final int getBitNo()
Method getBitNo

Returns:
the bit number of this field

getMaxLength

public final int getMaxLength()
Returns:
the max legth allowed for this ISOField

getLength

public final int getLength()
Returns:
current length of this isofield

getPackedValue

public final byte[] getPackedValue()
Returns:
the 4bit bcd encoded/packed data in case of numeric fields

getBinLenPackedValue

public final byte[] getBinLenPackedValue()
Method getBinLenPackedValue

Returns:
the binary encoded lengths and 4bit bcd encoded/packed numeric data in case of numeric fields

getPlainValue

public final byte[] getPlainValue()

getPlainValue

public final byte[] getPlainValue(boolean ebcdic)
Returns:
plain format data of this field

getStringValue

public final java.lang.String getStringValue()
Returns:
String value of this field

getBinaryValue

public final byte[] getBinaryValue()
Returns:
binary value of this field

getLongValue

public final long getLongValue()
Returns:
long integer value of this field if type of numeric or 0 if field ins not numeric

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String value of this field (same as getStringValue() )

AZS

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