Class OPOIFSDocument.SmallBlockStore
java.lang.Object
org.docx4j.org.apache.poi.poifs.filesystem.OPOIFSDocument.SmallBlockStore
- Enclosing class:
- OPOIFSDocument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final POIFSBigBlockSizeprivate final Stringprivate final POIFSDocumentPathprivate final intprivate SmallDocumentBlock[]private final POIFSWriterListener -
Constructor Summary
ConstructorsConstructorDescriptionSmallBlockStore(POIFSBigBlockSize bigBlockSize, POIFSDocumentPath path, String name, int size, POIFSWriterListener writer) Constructor for a small block store that will be written laterSmallBlockStore(POIFSBigBlockSize bigBlockSize, SmallDocumentBlock[] blocks) Constructor -
Method Summary
Modifier and TypeMethodDescription(package private) SmallDocumentBlock[](package private) booleanisValid()
-
Field Details
-
_smallBlocks
-
_path
-
_name
-
_size
private final int _size -
_writer
-
_bigBlockSize
-
-
Constructor Details
-
SmallBlockStore
SmallBlockStore(POIFSBigBlockSize bigBlockSize, SmallDocumentBlock[] blocks) Constructor- Parameters:
blocks- blocks to construct the store from
-
SmallBlockStore
SmallBlockStore(POIFSBigBlockSize bigBlockSize, POIFSDocumentPath path, String name, int size, POIFSWriterListener writer) Constructor for a small block store that will be written later- Parameters:
path- path of the documentname- name of the documentsize- length of the documentwriter- the object that will eventually write the document
-
-
Method Details
-
isValid
boolean isValid()- Returns:
trueif this store is a valid source of data
-
getBlocks
SmallDocumentBlock[] getBlocks()- Returns:
- the SmallDocumentBlocks
-