Package org.apache.poi.hwpf.model.types
Class FibBaseAbstractType
- java.lang.Object
-
- org.apache.poi.hwpf.model.types.FibBaseAbstractType
-
-
Field Summary
Fields Modifier and Type Field Description protected intfield_1_wIdentprotected bytefield_10_flags2protected shortfield_11_ChsDeprecated.protected shortfield_12_chsTablesDeprecated.protected intfield_13_fcMinDeprecated.protected intfield_14_fcMacDeprecated.protected intfield_2_nFibprotected intfield_3_unusedprotected intfield_4_lidprotected intfield_5_pnNextprotected shortfield_6_flags1protected intfield_7_nFibBackprotected intfield_8_lKeyprotected bytefield_9_envrDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFibBaseAbstractType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidfillFields(byte[] data, int offset)shortgetChs()This value MUST be 0 and MUST be ignored.shortgetChsTables()This value MUST be 0 and MUST be ignored.bytegetCQuickSaves()An unsigned integer.bytegetEnvr()This value MUST be 0, and MUST be ignored.intgetFcMac()This value is undefined and MUST be ignored.intgetFcMin()This value is undefined and MUST be ignored.shortgetFlags1()Get the flags1 field for the FibBase record.bytegetFlags2()Get the flags2 field for the FibBase record.bytegetFSpare0()Deprecated.This field should not be used according to specificationintgetLid()A LID that specifies the install language of the application that is producing the document.intgetLKey()If fEncryption is 1 and fObfuscation is 1, this value specifies the XOR obfuscation password verifier.intgetNFib()An unsigned integer that specifies the version number of the file format used.intgetNFibBack()This value SHOULD be 0x00BF.intgetPnNext()An unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items.static intgetSize()Size of recordintgetUnused()This value is undefined and MUST be ignored.intgetWIdent()An unsigned integer that specifies that this is a Word Binary File.booleanisFComplex()Specifies that the last save operation that was performed on this document was an incremental save operationbooleanisFDot()Specifies whether this is a document templatebooleanisFEmptySpecial()Deprecated.This field should not be used according to specificationbooleanisFEncrypted()Specifies whether the document is encrypted or obfuscated as specified in Encryption and ObfuscationbooleanisFExtChar()This value MUST be 1booleanisFFarEast()Specifies whether the installation language of the application that created the document was an East Asian languagebooleanisFGlsy()Specifies whether this is a document that contains only AutoText itemsbooleanisFHasPic()When set to 0, there SHOULD be no pictures in the documentbooleanisFLoadOverride()Specifies whether to override the language information and font that are specified in the paragraph style at istd 0 (the normal style) with the defaults that are appropriate for the installation language of the applicationbooleanisFLoadOverridePage()Specifies whether to override the section properties for page size, orientation, and margins with the defaults that are appropriate for the installation language of the applicationbooleanisFMac()Deprecated.This field should not be used according to specificationbooleanisFObfuscated()If fEncrypted is 1, this bit specifies whether the document is obfuscated by using XOR obfuscation; otherwise, this bit MUST be ignoredbooleanisFReadOnlyRecommended()Specifies whether the document author recommended that the document be opened in read-only modebooleanisFWhichTblStm()Specifies the Table stream to which the FIB refers.booleanisFWriteReservation()Specifies whether the document has a write-reservation passwordbooleanisReserved1()Deprecated.This field should not be used according to specificationbooleanisReserved2()Deprecated.This field should not be used according to specificationbyte[]serialize()voidserialize(byte[] data, int offset)voidsetChs(short field_11_Chs)This value MUST be 0 and MUST be ignored.voidsetChsTables(short field_12_chsTables)This value MUST be 0 and MUST be ignored.voidsetCQuickSaves(byte value)Sets the cQuickSaves field value.voidsetEnvr(byte field_9_envr)This value MUST be 0, and MUST be ignored.voidsetFcMac(int field_14_fcMac)This value is undefined and MUST be ignored.voidsetFcMin(int field_13_fcMin)This value is undefined and MUST be ignored.voidsetFComplex(boolean value)Sets the fComplex field value.voidsetFDot(boolean value)Sets the fDot field value.voidsetFEmptySpecial(boolean value)Sets the fEmptySpecial field value.voidsetFEncrypted(boolean value)Sets the fEncrypted field value.voidsetFExtChar(boolean value)Sets the fExtChar field value.voidsetFFarEast(boolean value)Sets the fFarEast field value.voidsetFGlsy(boolean value)Sets the fGlsy field value.voidsetFHasPic(boolean value)Sets the fHasPic field value.voidsetFlags1(short field_6_flags1)Set the flags1 field for the FibBase record.voidsetFlags2(byte field_10_flags2)Set the flags2 field for the FibBase record.voidsetFLoadOverride(boolean value)Sets the fLoadOverride field value.voidsetFLoadOverridePage(boolean value)Sets the fLoadOverridePage field value.voidsetFMac(boolean value)Sets the fMac field value.voidsetFObfuscated(boolean value)Sets the fObfuscated field value.voidsetFReadOnlyRecommended(boolean value)Sets the fReadOnlyRecommended field value.voidsetFSpare0(byte value)Sets the fSpare0 field value.voidsetFWhichTblStm(boolean value)Sets the fWhichTblStm field value.voidsetFWriteReservation(boolean value)Sets the fWriteReservation field value.voidsetLid(int field_4_lid)A LID that specifies the install language of the application that is producing the document.voidsetLKey(int field_8_lKey)If fEncryption is 1 and fObfuscation is 1, this value specifies the XOR obfuscation password verifier.voidsetNFib(int field_2_nFib)An unsigned integer that specifies the version number of the file format used.voidsetNFibBack(int field_7_nFibBack)This value SHOULD be 0x00BF.voidsetPnNext(int field_5_pnNext)An unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items.voidsetReserved1(boolean value)Sets the reserved1 field value.voidsetReserved2(boolean value)Sets the reserved2 field value.voidsetUnused(int field_3_unused)This value is undefined and MUST be ignored.voidsetWIdent(int field_1_wIdent)An unsigned integer that specifies that this is a Word Binary File.StringtoString()
-
-
-
Field Detail
-
field_1_wIdent
protected int field_1_wIdent
-
field_2_nFib
protected int field_2_nFib
-
field_3_unused
protected int field_3_unused
-
field_4_lid
protected int field_4_lid
-
field_5_pnNext
protected int field_5_pnNext
-
field_6_flags1
protected short field_6_flags1
-
field_7_nFibBack
protected int field_7_nFibBack
-
field_8_lKey
protected int field_8_lKey
-
field_9_envr
@Deprecated protected byte field_9_envr
Deprecated.
-
field_10_flags2
protected byte field_10_flags2
-
field_11_Chs
@Deprecated protected short field_11_Chs
Deprecated.
-
field_12_chsTables
@Deprecated protected short field_12_chsTables
Deprecated.
-
field_13_fcMin
@Deprecated protected int field_13_fcMin
Deprecated.
-
field_14_fcMac
@Deprecated protected int field_14_fcMac
Deprecated.
-
-
Method Detail
-
fillFields
protected void fillFields(byte[] data, int offset)
-
serialize
public void serialize(byte[] data, int offset)
-
serialize
public byte[] serialize()
-
getSize
public static int getSize()
Size of record
-
getWIdent
@Internal public int getWIdent()
An unsigned integer that specifies that this is a Word Binary File. This value MUST be 0xA5EC.
-
setWIdent
@Internal public void setWIdent(int field_1_wIdent)
An unsigned integer that specifies that this is a Word Binary File. This value MUST be 0xA5EC.
-
getNFib
@Internal public int getNFib()
An unsigned integer that specifies the version number of the file format used. Superseded by FibRgCswNew.nFibNew if it is present. This value SHOULD be 0x00C1.
-
setNFib
@Internal public void setNFib(int field_2_nFib)
An unsigned integer that specifies the version number of the file format used. Superseded by FibRgCswNew.nFibNew if it is present. This value SHOULD be 0x00C1.
-
getUnused
@Internal public int getUnused()
This value is undefined and MUST be ignored.
-
setUnused
@Internal public void setUnused(int field_3_unused)
This value is undefined and MUST be ignored.
-
getLid
@Internal public int getLid()
A LID that specifies the install language of the application that is producing the document. If nFib is 0x00D9 or greater, then any East Asian install lid or any install lid with a base language of Spanish, German or French MUST be recorded as lidAmerican. If the nFib is 0x0101 or greater, then any install lid with a base language of Vietnamese, Thai, or Hindi MUST be recorded as lidAmerican..
-
setLid
@Internal public void setLid(int field_4_lid)
A LID that specifies the install language of the application that is producing the document. If nFib is 0x00D9 or greater, then any East Asian install lid or any install lid with a base language of Spanish, German or French MUST be recorded as lidAmerican. If the nFib is 0x0101 or greater, then any install lid with a base language of Vietnamese, Thai, or Hindi MUST be recorded as lidAmerican..
-
getPnNext
@Internal public int getPnNext()
An unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items.
-
setPnNext
@Internal public void setPnNext(int field_5_pnNext)
An unsigned integer that specifies the offset in the WordDocument stream of the FIB for the document which contains all the AutoText items.
-
getFlags1
@Internal public short getFlags1()
Get the flags1 field for the FibBase record.
-
setFlags1
@Internal public void setFlags1(short field_6_flags1)
Set the flags1 field for the FibBase record.
-
getNFibBack
@Internal public int getNFibBack()
This value SHOULD be 0x00BF. This value MUST be 0x00BF or 0x00C1.
-
setNFibBack
@Internal public void setNFibBack(int field_7_nFibBack)
This value SHOULD be 0x00BF. This value MUST be 0x00BF or 0x00C1.
-
getLKey
@Internal public int getLKey()
If fEncryption is 1 and fObfuscation is 1, this value specifies the XOR obfuscation password verifier. If fEncryption is 1 and fObfuscation is 0, this value specifies the size of the EncryptionHeader that is stored at the beginning of the Table stream as described in Encryption and Obfuscation. Otherwise, this value MUST be 0.
-
setLKey
@Internal public void setLKey(int field_8_lKey)
If fEncryption is 1 and fObfuscation is 1, this value specifies the XOR obfuscation password verifier. If fEncryption is 1 and fObfuscation is 0, this value specifies the size of the EncryptionHeader that is stored at the beginning of the Table stream as described in Encryption and Obfuscation. Otherwise, this value MUST be 0.
-
getEnvr
@Internal public byte getEnvr()
This value MUST be 0, and MUST be ignored.
-
setEnvr
@Internal public void setEnvr(byte field_9_envr)
This value MUST be 0, and MUST be ignored.
-
getFlags2
@Internal public byte getFlags2()
Get the flags2 field for the FibBase record.
-
setFlags2
@Internal public void setFlags2(byte field_10_flags2)
Set the flags2 field for the FibBase record.
-
getChs
@Internal public short getChs()
This value MUST be 0 and MUST be ignored.
-
setChs
@Internal public void setChs(short field_11_Chs)
This value MUST be 0 and MUST be ignored.
-
getChsTables
@Internal public short getChsTables()
This value MUST be 0 and MUST be ignored.
-
setChsTables
@Internal public void setChsTables(short field_12_chsTables)
This value MUST be 0 and MUST be ignored.
-
getFcMin
@Internal public int getFcMin()
This value is undefined and MUST be ignored.
-
setFcMin
@Internal public void setFcMin(int field_13_fcMin)
This value is undefined and MUST be ignored.
-
getFcMac
@Internal public int getFcMac()
This value is undefined and MUST be ignored.
-
setFcMac
@Internal public void setFcMac(int field_14_fcMac)
This value is undefined and MUST be ignored.
-
setFDot
@Internal public void setFDot(boolean value)
Sets the fDot field value. Specifies whether this is a document template
-
isFDot
@Internal public boolean isFDot()
Specifies whether this is a document template- Returns:
- the fDot field value.
-
setFGlsy
@Internal public void setFGlsy(boolean value)
Sets the fGlsy field value. Specifies whether this is a document that contains only AutoText items
-
isFGlsy
@Internal public boolean isFGlsy()
Specifies whether this is a document that contains only AutoText items- Returns:
- the fGlsy field value.
-
setFComplex
@Internal public void setFComplex(boolean value)
Sets the fComplex field value. Specifies that the last save operation that was performed on this document was an incremental save operation
-
isFComplex
@Internal public boolean isFComplex()
Specifies that the last save operation that was performed on this document was an incremental save operation- Returns:
- the fComplex field value.
-
setFHasPic
@Internal public void setFHasPic(boolean value)
Sets the fHasPic field value. When set to 0, there SHOULD be no pictures in the document
-
isFHasPic
@Internal public boolean isFHasPic()
When set to 0, there SHOULD be no pictures in the document- Returns:
- the fHasPic field value.
-
setCQuickSaves
@Internal public void setCQuickSaves(byte value)
Sets the cQuickSaves field value. An unsigned integer. If nFib is less than 0x00D9, then cQuickSaves specifies the number of consecutive times this document was incrementally saved. If nFib is 0x00D9 or greater, then cQuickSaves MUST be 0xF
-
getCQuickSaves
@Internal public byte getCQuickSaves()
An unsigned integer. If nFib is less than 0x00D9, then cQuickSaves specifies the number of consecutive times this document was incrementally saved. If nFib is 0x00D9 or greater, then cQuickSaves MUST be 0xF- Returns:
- the cQuickSaves field value.
-
setFEncrypted
@Internal public void setFEncrypted(boolean value)
Sets the fEncrypted field value. Specifies whether the document is encrypted or obfuscated as specified in Encryption and Obfuscation
-
isFEncrypted
@Internal public boolean isFEncrypted()
Specifies whether the document is encrypted or obfuscated as specified in Encryption and Obfuscation- Returns:
- the fEncrypted field value.
-
setFWhichTblStm
@Internal public void setFWhichTblStm(boolean value)
Sets the fWhichTblStm field value. Specifies the Table stream to which the FIB refers. When this value is set to 1, use 1Table; when this value is set to 0, use 0Table.
-
isFWhichTblStm
@Internal public boolean isFWhichTblStm()
Specifies the Table stream to which the FIB refers. When this value is set to 1, use 1Table; when this value is set to 0, use 0Table.- Returns:
- the fWhichTblStm field value.
-
setFReadOnlyRecommended
@Internal public void setFReadOnlyRecommended(boolean value)
Sets the fReadOnlyRecommended field value. Specifies whether the document author recommended that the document be opened in read-only mode
-
isFReadOnlyRecommended
@Internal public boolean isFReadOnlyRecommended()
Specifies whether the document author recommended that the document be opened in read-only mode- Returns:
- the fReadOnlyRecommended field value.
-
setFWriteReservation
@Internal public void setFWriteReservation(boolean value)
Sets the fWriteReservation field value. Specifies whether the document has a write-reservation password
-
isFWriteReservation
@Internal public boolean isFWriteReservation()
Specifies whether the document has a write-reservation password- Returns:
- the fWriteReservation field value.
-
setFExtChar
@Internal public void setFExtChar(boolean value)
Sets the fExtChar field value. This value MUST be 1
-
isFExtChar
@Internal public boolean isFExtChar()
This value MUST be 1- Returns:
- the fExtChar field value.
-
setFLoadOverride
@Internal public void setFLoadOverride(boolean value)
Sets the fLoadOverride field value. Specifies whether to override the language information and font that are specified in the paragraph style at istd 0 (the normal style) with the defaults that are appropriate for the installation language of the application
-
isFLoadOverride
@Internal public boolean isFLoadOverride()
Specifies whether to override the language information and font that are specified in the paragraph style at istd 0 (the normal style) with the defaults that are appropriate for the installation language of the application- Returns:
- the fLoadOverride field value.
-
setFFarEast
@Internal public void setFFarEast(boolean value)
Sets the fFarEast field value. Specifies whether the installation language of the application that created the document was an East Asian language
-
isFFarEast
@Internal public boolean isFFarEast()
Specifies whether the installation language of the application that created the document was an East Asian language- Returns:
- the fFarEast field value.
-
setFObfuscated
@Internal public void setFObfuscated(boolean value)
Sets the fObfuscated field value. If fEncrypted is 1, this bit specifies whether the document is obfuscated by using XOR obfuscation; otherwise, this bit MUST be ignored
-
isFObfuscated
@Internal public boolean isFObfuscated()
If fEncrypted is 1, this bit specifies whether the document is obfuscated by using XOR obfuscation; otherwise, this bit MUST be ignored- Returns:
- the fObfuscated field value.
-
setFMac
@Internal public void setFMac(boolean value)
Sets the fMac field value. This value MUST be 0, and MUST be ignored
-
isFMac
@Internal @Deprecated public boolean isFMac()
Deprecated.This field should not be used according to specificationThis value MUST be 0, and MUST be ignored- Returns:
- the fMac field value.
-
setFEmptySpecial
@Internal public void setFEmptySpecial(boolean value)
Sets the fEmptySpecial field value. This value SHOULD be 0 and SHOULD be ignored
-
isFEmptySpecial
@Internal @Deprecated public boolean isFEmptySpecial()
Deprecated.This field should not be used according to specificationThis value SHOULD be 0 and SHOULD be ignored- Returns:
- the fEmptySpecial field value.
-
setFLoadOverridePage
@Internal public void setFLoadOverridePage(boolean value)
Sets the fLoadOverridePage field value. Specifies whether to override the section properties for page size, orientation, and margins with the defaults that are appropriate for the installation language of the application
-
isFLoadOverridePage
@Internal public boolean isFLoadOverridePage()
Specifies whether to override the section properties for page size, orientation, and margins with the defaults that are appropriate for the installation language of the application- Returns:
- the fLoadOverridePage field value.
-
setReserved1
@Internal public void setReserved1(boolean value)
Sets the reserved1 field value. This value is undefined and MUST be ignored
-
isReserved1
@Internal @Deprecated public boolean isReserved1()
Deprecated.This field should not be used according to specificationThis value is undefined and MUST be ignored- Returns:
- the reserved1 field value.
-
setReserved2
@Internal public void setReserved2(boolean value)
Sets the reserved2 field value. This value is undefined and MUST be ignored
-
isReserved2
@Internal @Deprecated public boolean isReserved2()
Deprecated.This field should not be used according to specificationThis value is undefined and MUST be ignored- Returns:
- the reserved2 field value.
-
setFSpare0
@Internal public void setFSpare0(byte value)
Sets the fSpare0 field value. This value is undefined and MUST be ignored
-
getFSpare0
@Internal @Deprecated public byte getFSpare0()
Deprecated.This field should not be used according to specificationThis value is undefined and MUST be ignored- Returns:
- the fSpare0 field value.
-
-