AZS

com.a2zss.ISO8583
Class Bitmap

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

public class Bitmap
extends ISOField

This class implements a Bitmap an extended ISOField object for use with other ISO classes The application can use this object for ISO meesage creation

See Also:
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
Bitmap(int bit, byte[] buf, Config c)
          contructs a bitmap from byte buffer with spetsified field number
Bitmap(int bit, byte[] buf, int v, Config c)
           
Bitmap(int bit, byte[] buf, int offs, int len, Config c)
          contructs a bitmap with spetsified field number from byte buffer from offset to offset + len
Bitmap(int bit, Config c)
          contructs a empty bitmap with spetsified field number
Bitmap(int bit, int ver, Config c)
          contructs a empty bitmap with spetsified field number and version
 
Method Summary
 int[] getActiveBits()
          method to get bit numbers that are set 1 (true) in this bitmap
 boolean getBit(int bitno)
           
 long getLong()
           
 void init(byte[] buf)
          initializes the bitmap from and 8 byte data buffer
 void init(byte[] buf, int offs, int len)
          initializes bitmap from byte buf from offset to offset+len
 void init(long lon)
          intitializes the bitmap from 64 bit long integer
 void setBit(int bitno, boolean state)
          method to set a specified bit in bitmap to 1 (true) or 0 (false)
 
Methods inherited from class com.a2zss.ISO8583.ISOField
getBinaryValue, getBinLenPackedValue, getBitNo, getLength, getLongValue, getMaxLength, getPackedValue, getPlainValue, getPlainValue, getStringValue, getType, getVersion, setValue, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bitmap

public Bitmap(int bit,
              Config c)
contructs a empty bitmap with spetsified field number

Parameters:
bit - the field number that is assigned to bitmap itself 0 - for primary bitmap, 1 - for secondary bitmap
c - the config

Bitmap

public Bitmap(int bit,
              int ver,
              Config c)
contructs a empty bitmap with spetsified field number and version

Parameters:
bit - 0 - for primary bitmap, 1 - for secondary bitmap
ver - - 0,1,2
c -

Bitmap

public Bitmap(int bit,
              byte[] buf,
              Config c)
contructs a bitmap from byte buffer with spetsified field number

Parameters:
bit - the field number that is assigned to bitmap itself 0 - for primary bitmap, 1 - for secondary bitmap
buf - the buffer holding bitmap data
c - the config

Bitmap

public Bitmap(int bit,
              byte[] buf,
              int v,
              Config c)

Bitmap

public Bitmap(int bit,
              byte[] buf,
              int offs,
              int len,
              Config c)
contructs a bitmap with spetsified field number from byte buffer from offset to offset + len

Parameters:
bit - the field number that is assigned to bitmap itself 0 - for primary bitmap, 1 - for secondary bitmap
buf - the buffer holding bitmap data
offs - - where the bitmap data starts in buf
len - - teh length of data in buffer to use (8)
Method Detail

init

public final void init(byte[] buf,
                       int offs,
                       int len)
initializes bitmap from byte buf from offset to offset+len

Parameters:
buf - - buffer where bitmap data is
offs - - start offset in buf
len - - length of data to read (8)

init

public final void init(byte[] buf)
initializes the bitmap from and 8 byte data buffer

Parameters:
buf - - the bitmap data 8 bytes length

setBit

public final void setBit(int bitno,
                         boolean state)
method to set a specified bit in bitmap to 1 (true) or 0 (false)

Parameters:
state - - true bit=1, false bit=0
bitno - - the bit number to modify (1..64) or for convenience 65..128 may also be used for secondary bitmap.

getBit

public final boolean getBit(int bitno)
Parameters:
bitno - - the field number to query 1..64 or for convenience 65..128 for secondary bitmap can be used.
Returns:
if the specified bit in the bitmap is 1 (true) or 0 (false)

getActiveBits

public final int[] getActiveBits()
method to get bit numbers that are set 1 (true) in this bitmap

Returns:
an array of integers representing bit numbers that are (1) true in that bitmap

getLong

public final long getLong()
Returns:
a long 64 bit integer value from bitmap data

init

public final void init(long lon)
intitializes the bitmap from 64 bit long integer

Parameters:
lon -

AZS

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