@Internal public final class FileInformationBlock extends java.lang.Object
The File Information Block (FIB). Holds pointers to various bits of the file, and lots of flags which specify properties of the document.
FibBase
class, holds the first 32 bytes.FibRgW97
.FibRgLw97
.FIBFieldHandler
.Constructor and Description |
---|
FileInformationBlock(byte[] mainDocument)
Creates a new instance of FileInformationBlock
|
Modifier and Type | Method and Description |
---|---|
void |
clearOffsetsSizes() |
void |
fillVariableFields(byte[] mainDocument,
byte[] tableStream) |
int |
getCbMac()
How many bytes of the main stream contain real data.
|
int |
getFcClx() |
int |
getFcDggInfo() |
int |
getFcDop() |
int |
getFcPlcfbkf() |
int |
getFcPlcfbkl() |
int |
getFcPlcfbteChpx() |
int |
getFcPlcfbtePapx() |
int |
getFcPlcffldAtn()
Deprecated.
|
int |
getFcPlcffldEdn()
Deprecated.
|
int |
getFcPlcffldFtn()
Deprecated.
|
int |
getFcPlcffldHdr()
Deprecated.
|
int |
getFcPlcffldHdrtxbx()
Deprecated.
|
int |
getFcPlcffldMom()
Deprecated.
|
int |
getFcPlcffldTxbx()
Deprecated.
|
int |
getFcPlcfLst()
Deprecated.
|
int |
getFcPlcfsed() |
int |
getFcPlcspaMom()
Deprecated.
|
int |
getFcPlfLfo()
An unsigned integer that specifies an offset in the Table Stream.
|
int |
getFcPlfLst()
An unsigned integer that specifies an offset in the Table Stream.
|
int |
getFcStshf() |
int |
getFcSttbfbkmk() |
int |
getFcSttbfffn() |
int |
getFcSttbfRMark() |
int |
getFcSttbSavedBy() |
FibBase |
getFibBase() |
int |
getFieldsPlcfLength(FieldsDocumentPart part) |
int |
getFieldsPlcfOffset(FieldsDocumentPart part) |
int |
getFSPAPlcfLength(FSPADocumentPart part) |
int |
getFSPAPlcfOffset(FSPADocumentPart part) |
int |
getLcbClx() |
int |
getLcbDggInfo() |
int |
getLcbDop() |
int |
getLcbPlcfbkf() |
int |
getLcbPlcfbkl() |
int |
getLcbPlcfbteChpx() |
int |
getLcbPlcfbtePapx() |
int |
getLcbPlcffldAtn()
Deprecated.
|
int |
getLcbPlcffldEdn()
Deprecated.
|
int |
getLcbPlcffldFtn()
Deprecated.
|
int |
getLcbPlcffldHdr()
Deprecated.
|
int |
getLcbPlcffldHdrtxbx()
Deprecated.
|
int |
getLcbPlcffldMom()
Deprecated.
|
int |
getLcbPlcffldTxbx()
Deprecated.
|
int |
getLcbPlcfLst()
Deprecated.
|
int |
getLcbPlcfsed() |
int |
getLcbPlcspaMom()
Deprecated.
|
int |
getLcbPlfLfo() |
int |
getLcbPlfLst() |
int |
getLcbStshf() |
int |
getLcbSttbfbkmk() |
int |
getLcbSttbfffn() |
int |
getLcbSttbfRMark() |
int |
getLcbSttbSavedBy() |
int |
getModifiedHigh() |
int |
getModifiedLow() |
int |
getNFib() |
int |
getNotesDescriptorsOffset(NoteType noteType) |
int |
getNotesDescriptorsSize(NoteType noteType) |
int |
getNotesTextPositionsOffset(NoteType noteType) |
int |
getNotesTextPositionsSize(NoteType noteType) |
int |
getPlcfHddOffset()
Return the offset to the PlcfHdd, in the table stream,
i.e.
|
int |
getPlcfHddSize()
Return the size of the PlcfHdd, in the table stream,
i.e.
|
int |
getSize() |
int |
getSubdocumentTextStreamLength(SubdocumentType type) |
void |
setCbMac(int cbMac)
Updates the count of the number of bytes in the
main stream which contain real data
|
void |
setFcClx(int fcClx) |
void |
setFcDop(int fcDop) |
void |
setFcPlcfbkf(int offset) |
void |
setFcPlcfbkl(int offset) |
void |
setFcPlcfbteChpx(int fcPlcfBteChpx) |
void |
setFcPlcfbtePapx(int fcPlcfBtePapx) |
void |
setFcPlcffldAtn(int offset)
Deprecated.
|
void |
setFcPlcffldEdn(int offset)
Deprecated.
|
void |
setFcPlcffldFtn(int offset)
Deprecated.
|
void |
setFcPlcffldHdr(int offset)
Deprecated.
|
void |
setFcPlcffldHdrtxbx(int offset)
Deprecated.
|
void |
setFcPlcffldMom(int offset)
Deprecated.
|
void |
setFcPlcffldTxbx(int offset)
Deprecated.
|
void |
setFcPlcfLst(int fcPlcfLst)
Deprecated.
|
void |
setFcPlcfsed(int fcPlcfSed) |
void |
setFcPlfLfo(int fcPlfLfo) |
void |
setFcPlfLst(int fcPlfLst) |
void |
setFcStshf(int fcStshf) |
void |
setFcSttbfbkmk(int offset) |
void |
setFcSttbfffn(int fcSttbFffn) |
void |
setFcSttbfRMark(int fcSttbfRMark) |
void |
setFcSttbSavedBy(int fcSttbSavedBy) |
void |
setFieldsPlcfLength(FieldsDocumentPart part,
int length) |
void |
setFieldsPlcfOffset(FieldsDocumentPart part,
int offset) |
void |
setFSPAPlcfLength(FSPADocumentPart part,
int length) |
void |
setFSPAPlcfOffset(FSPADocumentPart part,
int offset) |
void |
setLcbClx(int lcbClx) |
void |
setLcbDop(int lcbDop) |
void |
setLcbPlcfbkf(int length) |
void |
setLcbPlcfbkl(int length) |
void |
setLcbPlcfbteChpx(int lcbPlcfBteChpx) |
void |
setLcbPlcfbtePapx(int lcbPlcfBtePapx) |
void |
setLcbPlcffldAtn(int size)
Deprecated.
|
void |
setLcbPlcffldEdn(int size)
Deprecated.
|
void |
setLcbPlcffldFtn(int size)
Deprecated.
|
void |
setLcbPlcffldHdr(int size)
Deprecated.
|
void |
setLcbPlcffldHdrtxbx(int size)
Deprecated.
|
void |
setLcbPlcffldMom(int size)
Deprecated.
|
void |
setLcbPlcffldTxbx(int size)
Deprecated.
|
void |
setLcbPlcfLst(int lcbPlcfLst)
Deprecated.
|
void |
setLcbPlcfsed(int lcbPlcfSed) |
void |
setLcbPlfLfo(int lcbPlfLfo) |
void |
setLcbPlfLst(int lcbPlfLst) |
void |
setLcbStshf(int lcbStshf) |
void |
setLcbSttbfbkmk(int length) |
void |
setLcbSttbfffn(int lcbSttbFffn) |
void |
setLcbSttbfRMark(int lcbSttbfRMark) |
void |
setLcbSttbSavedBy(int fcSttbSavedBy) |
void |
setModifiedHigh(int modifiedHigh) |
void |
setModifiedLow(int modifiedLow) |
void |
setNotesDescriptorsOffset(NoteType noteType,
int offset) |
void |
setNotesDescriptorsSize(NoteType noteType,
int offset) |
void |
setNotesTextPositionsOffset(NoteType noteType,
int offset) |
void |
setNotesTextPositionsSize(NoteType noteType,
int offset) |
void |
setPlcfHddOffset(int fcPlcfHdd) |
void |
setPlcfHddSize(int lcbPlcfHdd) |
void |
setSubdocumentTextStreamLength(SubdocumentType type,
int length) |
java.lang.String |
toString() |
void |
writeTo(byte[] mainStream,
java.io.ByteArrayOutputStream tableStream) |
public static final POILogger logger
public FileInformationBlock(byte[] mainDocument)
public void fillVariableFields(byte[] mainDocument, byte[] tableStream)
public java.lang.String toString()
toString
in class java.lang.Object
public int getNFib()
public int getFcDop()
public void setFcDop(int fcDop)
public int getLcbDop()
public void setLcbDop(int lcbDop)
public int getFcStshf()
public int getLcbStshf()
public void setFcStshf(int fcStshf)
public void setLcbStshf(int lcbStshf)
public int getFcClx()
public int getLcbClx()
public void setFcClx(int fcClx)
public void setLcbClx(int lcbClx)
public int getFcPlcfbteChpx()
public int getLcbPlcfbteChpx()
public void setFcPlcfbteChpx(int fcPlcfBteChpx)
public void setLcbPlcfbteChpx(int lcbPlcfBteChpx)
public int getFcPlcfbtePapx()
public int getLcbPlcfbtePapx()
public void setFcPlcfbtePapx(int fcPlcfBtePapx)
public void setLcbPlcfbtePapx(int lcbPlcfBtePapx)
public int getFcPlcfsed()
public int getLcbPlcfsed()
public void setFcPlcfsed(int fcPlcfSed)
public void setLcbPlcfsed(int lcbPlcfSed)
@Deprecated public int getFcPlcfLst()
public int getFcPlfLst()
Quote from "[MS-DOC] -- v20110315, Word (.doc) Binary File Format; page 76 / 621"
@Deprecated public int getLcbPlcfLst()
public int getLcbPlfLst()
@Deprecated public void setFcPlcfLst(int fcPlcfLst)
public void setFcPlfLst(int fcPlfLst)
@Deprecated public void setLcbPlcfLst(int lcbPlcfLst)
public void setLcbPlfLst(int lcbPlfLst)
public int getFcPlfLfo()
Quote from "[MS-DOC] -- v20110315, Word (.doc) Binary File Format; page 76 / 621"
public int getLcbPlfLfo()
public int getFcSttbfbkmk()
public void setFcSttbfbkmk(int offset)
public int getLcbSttbfbkmk()
public void setLcbSttbfbkmk(int length)
public int getFcPlcfbkf()
public void setFcPlcfbkf(int offset)
public int getLcbPlcfbkf()
public void setLcbPlcfbkf(int length)
public int getFcPlcfbkl()
public void setFcPlcfbkl(int offset)
public int getLcbPlcfbkl()
public void setLcbPlcfbkl(int length)
public void setFcPlfLfo(int fcPlfLfo)
public void setLcbPlfLfo(int lcbPlfLfo)
public int getFcSttbfffn()
public int getLcbSttbfffn()
public void setFcSttbfffn(int fcSttbFffn)
public void setLcbSttbfffn(int lcbSttbFffn)
public int getFcSttbfRMark()
public int getLcbSttbfRMark()
public void setFcSttbfRMark(int fcSttbfRMark)
public void setLcbSttbfRMark(int lcbSttbfRMark)
public int getPlcfHddOffset()
public int getPlcfHddSize()
public void setPlcfHddOffset(int fcPlcfHdd)
public void setPlcfHddSize(int lcbPlcfHdd)
public int getFcSttbSavedBy()
public int getLcbSttbSavedBy()
public void setFcSttbSavedBy(int fcSttbSavedBy)
public void setLcbSttbSavedBy(int fcSttbSavedBy)
public int getModifiedLow()
public int getModifiedHigh()
public void setModifiedLow(int modifiedLow)
public void setModifiedHigh(int modifiedHigh)
public int getCbMac()
public void setCbMac(int cbMac)
public int getSubdocumentTextStreamLength(SubdocumentType type)
public void setSubdocumentTextStreamLength(SubdocumentType type, int length)
public void clearOffsetsSizes()
public int getFieldsPlcfOffset(FieldsDocumentPart part)
public int getFieldsPlcfLength(FieldsDocumentPart part)
public void setFieldsPlcfOffset(FieldsDocumentPart part, int offset)
public void setFieldsPlcfLength(FieldsDocumentPart part, int length)
@Deprecated public int getFcPlcffldAtn()
@Deprecated public int getLcbPlcffldAtn()
@Deprecated public void setFcPlcffldAtn(int offset)
@Deprecated public void setLcbPlcffldAtn(int size)
@Deprecated public int getFcPlcffldEdn()
@Deprecated public int getLcbPlcffldEdn()
@Deprecated public void setFcPlcffldEdn(int offset)
@Deprecated public void setLcbPlcffldEdn(int size)
@Deprecated public int getFcPlcffldFtn()
@Deprecated public int getLcbPlcffldFtn()
@Deprecated public void setFcPlcffldFtn(int offset)
@Deprecated public void setLcbPlcffldFtn(int size)
@Deprecated public int getFcPlcffldHdr()
@Deprecated public int getLcbPlcffldHdr()
@Deprecated public void setFcPlcffldHdr(int offset)
@Deprecated public void setLcbPlcffldHdr(int size)
@Deprecated public int getFcPlcffldHdrtxbx()
@Deprecated public int getLcbPlcffldHdrtxbx()
@Deprecated public void setFcPlcffldHdrtxbx(int offset)
@Deprecated public void setLcbPlcffldHdrtxbx(int size)
@Deprecated public int getFcPlcffldMom()
@Deprecated public int getLcbPlcffldMom()
@Deprecated public void setFcPlcffldMom(int offset)
@Deprecated public void setLcbPlcffldMom(int size)
@Deprecated public int getFcPlcffldTxbx()
@Deprecated public int getLcbPlcffldTxbx()
@Deprecated public void setFcPlcffldTxbx(int offset)
@Deprecated public void setLcbPlcffldTxbx(int size)
public int getFSPAPlcfOffset(FSPADocumentPart part)
public int getFSPAPlcfLength(FSPADocumentPart part)
public void setFSPAPlcfOffset(FSPADocumentPart part, int offset)
public void setFSPAPlcfLength(FSPADocumentPart part, int length)
@Deprecated public int getFcPlcspaMom()
@Deprecated public int getLcbPlcspaMom()
public int getFcDggInfo()
public int getLcbDggInfo()
public int getNotesDescriptorsOffset(NoteType noteType)
public void setNotesDescriptorsOffset(NoteType noteType, int offset)
public int getNotesDescriptorsSize(NoteType noteType)
public void setNotesDescriptorsSize(NoteType noteType, int offset)
public int getNotesTextPositionsOffset(NoteType noteType)
public void setNotesTextPositionsOffset(NoteType noteType, int offset)
public int getNotesTextPositionsSize(NoteType noteType)
public void setNotesTextPositionsSize(NoteType noteType, int offset)
public void writeTo(byte[] mainStream, java.io.ByteArrayOutputStream tableStream) throws java.io.IOException
java.io.IOException
public int getSize()
public FibBase getFibBase()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.