FileDocCategorySizeDatePackage
FIBLongHandler.javaAPI DocApache Poi 3.0.13123Mon Jan 01 18:55:32 GMT 2007org.apache.poi.hwpf.model

FIBLongHandler

public 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 intgetLong(int longCode)
Refers to a 32 bit windows "long" same as a Java int

param
longCode FIXME: Document this!
return
FIXME: Document this!

    return _longs[longCode];
  
voidserialize(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 voidsetLong(int longCode, int value)

    _longs[longCode] = value;
  
intsizeInBytes()

    return (_longs.length * LittleEndian.INT_SIZE) + LittleEndian.SHORT_SIZE;