|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.a2zss.ISO8583.ISOField
com.a2zss.ISO8583.Bitmap
public class Bitmap
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
ISO8583II,
Serialized Form| Field Summary |
|---|
| 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 |
|---|
public Bitmap(int bit,
Config c)
bit - the field number that is assigned to bitmap itself
0 - for primary bitmap, 1 - for secondary bitmapc - the config
public Bitmap(int bit,
int ver,
Config c)
bit - 0 - for primary bitmap, 1 - for secondary bitmapver - - 0,1,2c -
public Bitmap(int bit,
byte[] buf,
Config c)
bit - the field number that is assigned to bitmap itself
0 - for primary bitmap, 1 - for secondary bitmapbuf - the buffer holding bitmap datac - the config
public Bitmap(int bit,
byte[] buf,
int v,
Config c)
public Bitmap(int bit,
byte[] buf,
int offs,
int len,
Config c)
bit - the field number that is assigned to bitmap itself
0 - for primary bitmap, 1 - for secondary bitmapbuf - the buffer holding bitmap dataoffs - - where the bitmap data starts in buflen - - teh length of data in buffer to use (8)| Method Detail |
|---|
public final void init(byte[] buf,
int offs,
int len)
buf - - buffer where bitmap data isoffs - - start offset in buflen - - length of data to read (8)public final void init(byte[] buf)
buf - - the bitmap data 8 bytes length
public final void setBit(int bitno,
boolean state)
state - - true bit=1, false bit=0bitno - - the bit number to modify (1..64) or for convenience 65..128 may also be used for secondary bitmap.public final boolean getBit(int bitno)
bitno - - the field number to query 1..64 or for convenience 65..128 for secondary bitmap
can be used.
public final int[] getActiveBits()
public final long getLong()
public final void init(long lon)
lon -
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||