Class BigBlock
java.lang.Object
org.docx4j.org.apache.poi.poifs.storage.BigBlock
- All Implemented Interfaces:
BlockWritable
- Direct Known Subclasses:
BATBlock,DocumentBlock,PropertyBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected POIFSBigBlockSizeEither 512 bytes (POIFSConstants.SMALLER_BIG_BLOCK_SIZE) or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWriteData(OutputStream stream, byte[] data) Default implementation of write for extending classes that contain their data in a simple array of bytes.voidwriteBlocks(OutputStream stream) Write the storage to an OutputStream(package private) abstract voidwriteData(OutputStream stream) Write the block's data to an OutputStream
-
Field Details
-
bigBlockSize
Either 512 bytes (POIFSConstants.SMALLER_BIG_BLOCK_SIZE) or 4096 bytes (POIFSConstants.LARGER_BIG_BLOCK_SIZE)
-
-
Constructor Details
-
BigBlock
-
-
Method Details
-
doWriteData
Default implementation of write for extending classes that contain their data in a simple array of bytes.- Parameters:
stream- the OutputStream to which the data should be written.data- the byte array of to be written.- Throws:
IOException- on problems writing to the specified stream.
-
writeData
Write the block's data to an OutputStream- Parameters:
stream- the OutputStream to which the stored data should be written- Throws:
IOException- on problems writing to the specified stream
-
writeBlocks
Write the storage to an OutputStream- Specified by:
writeBlocksin interfaceBlockWritable- Parameters:
stream- the OutputStream to which the stored data should be written- Throws:
IOException- on problems writing to the specified stream
-