Class SmallBlockTableReader
java.lang.Object
org.docx4j.org.apache.poi.poifs.storage.SmallBlockTableReader
This class implements reading the small document block list from an
existing file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockAllocationTableReader_getSmallDocumentBlockReader(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart) Fetch the small document block reader from an existing file, normally needed for debugging and low level dumping.static BlockListgetSmallDocumentBlocks(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart) Fetch the small document block list from an existing fileprivate static BlockAllocationTableReaderprepareReader(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, BlockList list, RootProperty root, int sbatStart) private static BlockListprepareSmallDocumentBlocks(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart)
-
Constructor Details
-
SmallBlockTableReader
public SmallBlockTableReader()
-
-
Method Details
-
prepareSmallDocumentBlocks
private static BlockList prepareSmallDocumentBlocks(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart) throws IOException - Throws:
IOException
-
prepareReader
private static BlockAllocationTableReader prepareReader(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, BlockList list, RootProperty root, int sbatStart) throws IOException - Throws:
IOException
-
_getSmallDocumentBlockReader
public static BlockAllocationTableReader _getSmallDocumentBlockReader(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart) throws IOException Fetch the small document block reader from an existing file, normally needed for debugging and low level dumping. You should typically callgetSmallDocumentBlocks(POIFSBigBlockSize, RawDataBlockList, RootProperty, int)instead.- Parameters:
blockList- the raw data from which the small block table will be extractedroot- the root property (which contains the start block and small block table size)sbatStart- the start block of the SBAT- Returns:
- the small document block reader
- Throws:
IOException
-
getSmallDocumentBlocks
public static BlockList getSmallDocumentBlocks(POIFSBigBlockSize bigBlockSize, RawDataBlockList blockList, RootProperty root, int sbatStart) throws IOException Fetch the small document block list from an existing file- Parameters:
blockList- the raw data from which the small block table will be extractedroot- the root property (which contains the start block and small block table size)sbatStart- the start block of the SBAT- Returns:
- the small document block list
- Throws:
IOException
-