FIBLongHandlerpublic class FIBLongHandler extends Object
Fields Summary |
---|
public static final int | CBMAC | public static final int | PRODUCTCREATED | public static final int | PRODUCTREVISED | public static final int | CCPTEXT | public static final int | CCPFTN | public static final int | CCPHDD | public static final int | CCPMCR | public static final int | CCPATN | public static final int | CCPEDN | public static final int | CCPTXBX | public static final int | CCPHDRTXBX | public static final int | PNFBPCHPFIRST | public static final int | PNCHPFIRST | public static final int | CPNBTECHP | public static final int | PNFBPPAPFIRST | public static final int | PNPAPFIRST | public static final int | CPNBTEPAP | public static final int | PNFBPLVCFIRST | public static final int | PNLVCFIRST | public static final int | CPNBTELVC | public static final int | FCISLANDFIRST | public static final int | FCISLANDLIM | int[] | _longs |
Constructors Summary |
---|
public FIBLongHandler(byte[] mainStream, int offset)
int longCount = LittleEndian.getShort(mainStream, offset);
offset += LittleEndian.SHORT_SIZE;
_longs = new int[longCount];
for (int x = 0; x < longCount; x++)
{
_longs[x] = LittleEndian.getInt(mainStream, offset + (x * LittleEndian.INT_SIZE));
}
|
Methods Summary |
---|
public int | getLong(int longCode)Refers to a 32 bit windows "long" same as a Java int
return _longs[longCode];
| void | serialize(byte[] mainStream, int offset)
LittleEndian.putShort(mainStream, offset, (short)_longs.length);
offset += LittleEndian.SHORT_SIZE;
for (int x = 0; x < _longs.length; x++)
{
LittleEndian.putInt(mainStream, offset, _longs[x]);
offset += LittleEndian.INT_SIZE;
}
| public void | setLong(int longCode, int value)
_longs[longCode] = value;
| int | sizeInBytes()
return (_longs.length * LittleEndian.INT_SIZE) + LittleEndian.SHORT_SIZE;
|
|