Class OPOIFSDocument.BigBlockStore
java.lang.Object
org.docx4j.org.apache.poi.poifs.filesystem.OPOIFSDocument.BigBlockStore
- Enclosing class:
- OPOIFSDocument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final POIFSBigBlockSizeprivate final Stringprivate final POIFSDocumentPathprivate final intprivate final POIFSWriterListenerprivate DocumentBlock[] -
Constructor Summary
ConstructorsConstructorDescriptionBigBlockStore(POIFSBigBlockSize bigBlockSize, POIFSDocumentPath path, String name, int size, POIFSWriterListener writer) Constructor for a big block store that will be written laterBigBlockStore(POIFSBigBlockSize bigBlockSize, DocumentBlock[] blocks) Constructor -
Method Summary
Modifier and TypeMethodDescription(package private) int(package private) DocumentBlock[](package private) booleanisValid()(package private) voidwriteBlocks(OutputStream stream) write the blocks to a stream
-
Field Details
-
bigBlocks
-
_path
-
_name
-
_size
private final int _size -
_writer
-
_bigBlockSize
-
-
Constructor Details
-
BigBlockStore
BigBlockStore(POIFSBigBlockSize bigBlockSize, DocumentBlock[] blocks) Constructor- Parameters:
blocks- the blocks making up the store
-
BigBlockStore
BigBlockStore(POIFSBigBlockSize bigBlockSize, POIFSDocumentPath path, String name, int size, POIFSWriterListener writer) Constructor for a big 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
DocumentBlock[] getBlocks()- Returns:
- the DocumentBlocks
-
writeBlocks
write the blocks to a stream- Parameters:
stream- the stream to which the data is to be written- Throws:
IOException
-
countBlocks
int countBlocks()- Returns:
- number of big blocks making up this document
-