Class NPropertyTable
java.lang.Object
org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
org.docx4j.org.apache.poi.poifs.property.NPropertyTable
- All Implemented Interfaces:
BATManaged
This class embodies the Property Table for a
NPOIFSFileSystem;
this is basically the directory for all of the documents in the
filesystem.-
Field Summary
Fields inherited from class org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
_properties -
Constructor Summary
ConstructorsConstructorDescriptionNPropertyTable(HeaderBlock headerBlock) NPropertyTable(HeaderBlock headerBlock, NPOIFSFileSystem filesystem) reading constructor (used when we've read in a file and we want to extract the property table from it). -
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of BigBlock's this instance usesvoidpreWrite()Prepare to be writtenvoidwrite(NPOIFSStream stream) Writes the properties out into the given low-level streamMethods inherited from class org.docx4j.org.apache.poi.poifs.property.PropertyTableBase
addProperty, getRoot, getStartBlock, removeProperty, setStartBlock
-
Constructor Details
-
NPropertyTable
-
NPropertyTable
reading constructor (used when we've read in a file and we want to extract the property table from it). Populates the properties thoroughly- Parameters:
headerBlock- the header block of the filefilesystem- the filesystem to read from- Throws:
IOException- if anything goes wrong (which should be a result of the input being NFG)
-
-
Method Details
-
countBlocks
public int countBlocks()Return the number of BigBlock's this instance uses- Returns:
- count of BigBlock instances
-
preWrite
public void preWrite()Prepare to be written -
write
Writes the properties out into the given low-level stream- Throws:
IOException
-