FileDocCategorySizeDatePackage
FIBAbstractType.javaAPI DocApache Poi 3.0.121348Mon Jan 01 18:55:32 GMT 2007org.apache.poi.hwpf.model.types

FIBAbstractType

public abstract class FIBAbstractType extends Object implements HDFType
File information Block. NOTE: This source is automatically generated please do not modify this file. Either subclass or remove the record in src/records/definitions.
author
Andrew C. Oliver

Fields Summary
protected int
field_1_wIdent
protected int
field_2_nFib
protected int
field_3_nProduct
protected int
field_4_lid
protected int
field_5_pnNext
protected short
field_6_options
private static BitField
fDot
private static BitField
fGlsy
private static BitField
fComplex
private static BitField
fHasPic
private static BitField
cQuickSaves
private static BitField
fEncrypted
private static BitField
fWhichTblStm
private static BitField
fReadOnlyRecommended
private static BitField
fWriteReservation
private static BitField
fExtChar
private static BitField
fLoadOverride
private static BitField
fFarEast
private static BitField
fCrypto
protected int
field_7_nFibBack
protected int
field_8_lKey
protected int
field_9_envr
protected short
field_10_history
private static BitField
fMac
private static BitField
fEmptySpecial
private static BitField
fLoadOverridePage
private static BitField
fFutureSavedUndo
private static BitField
fWord97Saved
private static BitField
fSpare0
protected int
field_11_chs
protected int
field_12_chsTables
protected int
field_13_fcMin
protected int
field_14_fcMac
Constructors Summary
public FIBAbstractType()



     
    

    
Methods Summary
protected voidfillFields(byte[] data, int offset)

        field_1_wIdent                  = LittleEndian.getShort(data, 0x0 + offset);
        field_2_nFib                    = LittleEndian.getShort(data, 0x2 + offset);
        field_3_nProduct                = LittleEndian.getShort(data, 0x4 + offset);
        field_4_lid                     = LittleEndian.getShort(data, 0x6 + offset);
        field_5_pnNext                  = LittleEndian.getShort(data, 0x8 + offset);
        field_6_options                 = LittleEndian.getShort(data, 0xa + offset);
        field_7_nFibBack                = LittleEndian.getShort(data, 0xc + offset);
        field_8_lKey                    = LittleEndian.getShort(data, 0xe + offset);
        field_9_envr                    = LittleEndian.getShort(data, 0x10 + offset);
        field_10_history                = LittleEndian.getShort(data, 0x12 + offset);
        field_11_chs                    = LittleEndian.getShort(data, 0x14 + offset);
        field_12_chsTables              = LittleEndian.getShort(data, 0x16 + offset);
        field_13_fcMin                  = LittleEndian.getInt(data, 0x18 + offset);
        field_14_fcMac                  = LittleEndian.getInt(data, 0x1c + offset);

    
public bytegetCQuickSaves()

return
the cQuickSaves field value.

        return ( byte )cQuickSaves.getValue(field_6_options);

    
public intgetChs()
Get the chs field for the FIB record.

        return field_11_chs;
    
public intgetChsTables()
Get the chsTables field for the FIB record.

        return field_12_chsTables;
    
public intgetEnvr()
Get the envr field for the FIB record.

        return field_9_envr;
    
public bytegetFSpare0()

return
the fSpare0 field value.

        return ( byte )fSpare0.getValue(field_10_history);

    
public intgetFcMac()
Get the fcMac field for the FIB record.

        return field_14_fcMac;
    
public intgetFcMin()
Get the fcMin field for the FIB record.

        return field_13_fcMin;
    
public shortgetHistory()
Get the history field for the FIB record.

        return field_10_history;
    
public intgetLKey()
Get the lKey field for the FIB record.

        return field_8_lKey;
    
public intgetLid()
Get the lid field for the FIB record.

        return field_4_lid;
    
public intgetNFib()
Get the nFib field for the FIB record.

        return field_2_nFib;
    
public intgetNFibBack()
Get the nFibBack field for the FIB record.

        return field_7_nFibBack;
    
public intgetNProduct()
Get the nProduct field for the FIB record.

        return field_3_nProduct;
    
public shortgetOptions()
Get the options field for the FIB record.

        return field_6_options;
    
public intgetPnNext()
Get the pnNext field for the FIB record.

        return field_5_pnNext;
    
public intgetSize()
Size of record (exluding 4 byte header)

        return 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4;
    
public intgetWIdent()
Get the wIdent field for the FIB record.

        return field_1_wIdent;
    
public booleanisFComplex()

return
the fComplex field value.

        return fComplex.isSet(field_6_options);

    
public booleanisFCrypto()

return
the fCrypto field value.

        return fCrypto.isSet(field_6_options);

    
public booleanisFDot()

return
the fDot field value.

        return fDot.isSet(field_6_options);

    
public booleanisFEmptySpecial()

return
the fEmptySpecial field value.

        return fEmptySpecial.isSet(field_10_history);

    
public booleanisFEncrypted()

return
the fEncrypted field value.

        return fEncrypted.isSet(field_6_options);

    
public booleanisFExtChar()

return
the fExtChar field value.

        return fExtChar.isSet(field_6_options);

    
public booleanisFFarEast()

return
the fFarEast field value.

        return fFarEast.isSet(field_6_options);

    
public booleanisFFutureSavedUndo()

return
the fFutureSavedUndo field value.

        return fFutureSavedUndo.isSet(field_10_history);

    
public booleanisFGlsy()

return
the fGlsy field value.

        return fGlsy.isSet(field_6_options);

    
public booleanisFHasPic()

return
the fHasPic field value.

        return fHasPic.isSet(field_6_options);

    
public booleanisFLoadOverride()

return
the fLoadOverride field value.

        return fLoadOverride.isSet(field_6_options);

    
public booleanisFLoadOverridePage()

return
the fLoadOverridePage field value.

        return fLoadOverridePage.isSet(field_10_history);

    
public booleanisFMac()

return
the fMac field value.

        return fMac.isSet(field_10_history);

    
public booleanisFReadOnlyRecommended()

return
the fReadOnlyRecommended field value.

        return fReadOnlyRecommended.isSet(field_6_options);

    
public booleanisFWhichTblStm()

return
the fWhichTblStm field value.

        return fWhichTblStm.isSet(field_6_options);

    
public booleanisFWord97Saved()

return
the fWord97Saved field value.

        return fWord97Saved.isSet(field_10_history);

    
public booleanisFWriteReservation()

return
the fWriteReservation field value.

        return fWriteReservation.isSet(field_6_options);

    
public voidserialize(byte[] data, int offset)

        LittleEndian.putShort(data, 0x0 + offset, (short)field_1_wIdent);;
        LittleEndian.putShort(data, 0x2 + offset, (short)field_2_nFib);;
        LittleEndian.putShort(data, 0x4 + offset, (short)field_3_nProduct);;
        LittleEndian.putShort(data, 0x6 + offset, (short)field_4_lid);;
        LittleEndian.putShort(data, 0x8 + offset, (short)field_5_pnNext);;
        LittleEndian.putShort(data, 0xa + offset, (short)field_6_options);;
        LittleEndian.putShort(data, 0xc + offset, (short)field_7_nFibBack);;
        LittleEndian.putShort(data, 0xe + offset, (short)field_8_lKey);;
        LittleEndian.putShort(data, 0x10 + offset, (short)field_9_envr);;
        LittleEndian.putShort(data, 0x12 + offset, (short)field_10_history);;
        LittleEndian.putShort(data, 0x14 + offset, (short)field_11_chs);;
        LittleEndian.putShort(data, 0x16 + offset, (short)field_12_chsTables);;
        LittleEndian.putInt(data, 0x18 + offset, field_13_fcMin);;
        LittleEndian.putInt(data, 0x1c + offset, field_14_fcMac);;

    
public voidsetCQuickSaves(byte value)
Sets the cQuickSaves field value.

        field_6_options = (short)cQuickSaves.setValue(field_6_options, value);


    
public voidsetChs(int field_11_chs)
Set the chs field for the FIB record.

        this.field_11_chs = field_11_chs;
    
public voidsetChsTables(int field_12_chsTables)
Set the chsTables field for the FIB record.

        this.field_12_chsTables = field_12_chsTables;
    
public voidsetEnvr(int field_9_envr)
Set the envr field for the FIB record.

        this.field_9_envr = field_9_envr;
    
public voidsetFComplex(boolean value)
Sets the fComplex field value.

        field_6_options = (short)fComplex.setBoolean(field_6_options, value);


    
public voidsetFCrypto(boolean value)
Sets the fCrypto field value.

        field_6_options = (short)fCrypto.setBoolean(field_6_options, value);


    
public voidsetFDot(boolean value)
Sets the fDot field value.

        field_6_options = (short)fDot.setBoolean(field_6_options, value);


    
public voidsetFEmptySpecial(boolean value)
Sets the fEmptySpecial field value.

        field_10_history = (short)fEmptySpecial.setBoolean(field_10_history, value);


    
public voidsetFEncrypted(boolean value)
Sets the fEncrypted field value.

        field_6_options = (short)fEncrypted.setBoolean(field_6_options, value);


    
public voidsetFExtChar(boolean value)
Sets the fExtChar field value.

        field_6_options = (short)fExtChar.setBoolean(field_6_options, value);


    
public voidsetFFarEast(boolean value)
Sets the fFarEast field value.

        field_6_options = (short)fFarEast.setBoolean(field_6_options, value);


    
public voidsetFFutureSavedUndo(boolean value)
Sets the fFutureSavedUndo field value.

        field_10_history = (short)fFutureSavedUndo.setBoolean(field_10_history, value);


    
public voidsetFGlsy(boolean value)
Sets the fGlsy field value.

        field_6_options = (short)fGlsy.setBoolean(field_6_options, value);


    
public voidsetFHasPic(boolean value)
Sets the fHasPic field value.

        field_6_options = (short)fHasPic.setBoolean(field_6_options, value);


    
public voidsetFLoadOverride(boolean value)
Sets the fLoadOverride field value.

        field_6_options = (short)fLoadOverride.setBoolean(field_6_options, value);


    
public voidsetFLoadOverridePage(boolean value)
Sets the fLoadOverridePage field value.

        field_10_history = (short)fLoadOverridePage.setBoolean(field_10_history, value);


    
public voidsetFMac(boolean value)
Sets the fMac field value.

        field_10_history = (short)fMac.setBoolean(field_10_history, value);


    
public voidsetFReadOnlyRecommended(boolean value)
Sets the fReadOnlyRecommended field value.

        field_6_options = (short)fReadOnlyRecommended.setBoolean(field_6_options, value);


    
public voidsetFSpare0(byte value)
Sets the fSpare0 field value.

        field_10_history = (short)fSpare0.setValue(field_10_history, value);


    
public voidsetFWhichTblStm(boolean value)
Sets the fWhichTblStm field value.

        field_6_options = (short)fWhichTblStm.setBoolean(field_6_options, value);


    
public voidsetFWord97Saved(boolean value)
Sets the fWord97Saved field value.

        field_10_history = (short)fWord97Saved.setBoolean(field_10_history, value);


    
public voidsetFWriteReservation(boolean value)
Sets the fWriteReservation field value.

        field_6_options = (short)fWriteReservation.setBoolean(field_6_options, value);


    
public voidsetFcMac(int field_14_fcMac)
Set the fcMac field for the FIB record.

        this.field_14_fcMac = field_14_fcMac;
    
public voidsetFcMin(int field_13_fcMin)
Set the fcMin field for the FIB record.

        this.field_13_fcMin = field_13_fcMin;
    
public voidsetHistory(short field_10_history)
Set the history field for the FIB record.

        this.field_10_history = field_10_history;
    
public voidsetLKey(int field_8_lKey)
Set the lKey field for the FIB record.

        this.field_8_lKey = field_8_lKey;
    
public voidsetLid(int field_4_lid)
Set the lid field for the FIB record.

        this.field_4_lid = field_4_lid;
    
public voidsetNFib(int field_2_nFib)
Set the nFib field for the FIB record.

        this.field_2_nFib = field_2_nFib;
    
public voidsetNFibBack(int field_7_nFibBack)
Set the nFibBack field for the FIB record.

        this.field_7_nFibBack = field_7_nFibBack;
    
public voidsetNProduct(int field_3_nProduct)
Set the nProduct field for the FIB record.

        this.field_3_nProduct = field_3_nProduct;
    
public voidsetOptions(short field_6_options)
Set the options field for the FIB record.

        this.field_6_options = field_6_options;
    
public voidsetPnNext(int field_5_pnNext)
Set the pnNext field for the FIB record.

        this.field_5_pnNext = field_5_pnNext;
    
public voidsetWIdent(int field_1_wIdent)
Set the wIdent field for the FIB record.

        this.field_1_wIdent = field_1_wIdent;
    
public java.lang.StringtoString()

        StringBuffer buffer = new StringBuffer();

        buffer.append("[FIB]\n");

        buffer.append("    .wIdent               = ");
        buffer.append(" (").append(getWIdent()).append(" )\n");

        buffer.append("    .nFib                 = ");
        buffer.append(" (").append(getNFib()).append(" )\n");

        buffer.append("    .nProduct             = ");
        buffer.append(" (").append(getNProduct()).append(" )\n");

        buffer.append("    .lid                  = ");
        buffer.append(" (").append(getLid()).append(" )\n");

        buffer.append("    .pnNext               = ");
        buffer.append(" (").append(getPnNext()).append(" )\n");

        buffer.append("    .options              = ");
        buffer.append(" (").append(getOptions()).append(" )\n");
        buffer.append("         .fDot                     = ").append(isFDot()).append('\n");
        buffer.append("         .fGlsy                    = ").append(isFGlsy()).append('\n");
        buffer.append("         .fComplex                 = ").append(isFComplex()).append('\n");
        buffer.append("         .fHasPic                  = ").append(isFHasPic()).append('\n");
        buffer.append("         .cQuickSaves              = ").append(getCQuickSaves()).append('\n");
        buffer.append("         .fEncrypted               = ").append(isFEncrypted()).append('\n");
        buffer.append("         .fWhichTblStm             = ").append(isFWhichTblStm()).append('\n");
        buffer.append("         .fReadOnlyRecommended     = ").append(isFReadOnlyRecommended()).append('\n");
        buffer.append("         .fWriteReservation        = ").append(isFWriteReservation()).append('\n");
        buffer.append("         .fExtChar                 = ").append(isFExtChar()).append('\n");
        buffer.append("         .fLoadOverride            = ").append(isFLoadOverride()).append('\n");
        buffer.append("         .fFarEast                 = ").append(isFFarEast()).append('\n");
        buffer.append("         .fCrypto                  = ").append(isFCrypto()).append('\n");

        buffer.append("    .nFibBack             = ");
        buffer.append(" (").append(getNFibBack()).append(" )\n");

        buffer.append("    .lKey                 = ");
        buffer.append(" (").append(getLKey()).append(" )\n");

        buffer.append("    .envr                 = ");
        buffer.append(" (").append(getEnvr()).append(" )\n");

        buffer.append("    .history              = ");
        buffer.append(" (").append(getHistory()).append(" )\n");
        buffer.append("         .fMac                     = ").append(isFMac()).append('\n");
        buffer.append("         .fEmptySpecial            = ").append(isFEmptySpecial()).append('\n");
        buffer.append("         .fLoadOverridePage        = ").append(isFLoadOverridePage()).append('\n");
        buffer.append("         .fFutureSavedUndo         = ").append(isFFutureSavedUndo()).append('\n");
        buffer.append("         .fWord97Saved             = ").append(isFWord97Saved()).append('\n");
        buffer.append("         .fSpare0                  = ").append(getFSpare0()).append('\n");

        buffer.append("    .chs                  = ");
        buffer.append(" (").append(getChs()).append(" )\n");

        buffer.append("    .chsTables            = ");
        buffer.append(" (").append(getChsTables()).append(" )\n");

        buffer.append("    .fcMin                = ");
        buffer.append(" (").append(getFcMin()).append(" )\n");

        buffer.append("    .fcMac                = ");
        buffer.append(" (").append(getFcMac()).append(" )\n");

        buffer.append("[/FIB]\n");
        return buffer.toString();