POIFSFileSystem
| Modifier and Type | Field and Description |
|---|---|
| private final POIFSFileSystem | |
| private final HeaderBlock | |
| private POIFSStream | |
| private final RootProperty | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv | POIFSMiniStore(POIFSFileSystem filesystem, RootProperty root, List<BATBlock> sbats, HeaderBlock header)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ByteBuffer | createBlockIfNeeded(final int offset)
Implements abstract org. Load the block, extending the underlying stream if needed |
| protected BATBlock. | getBATBlockAndIndex(final int offset)
Implements abstract org. Returns the BATBlock that handles the specified offset, and the relative index within it |
| protected ByteBuffer | getBlockAt(final int offset)
Implements abstract org. Load the block at the given offset. |
| protected int | getBlockStoreBlockSize()
Implements abstract org. Returns the size of the blocks managed through the block store. |
| protected BlockStore. | getChainLoopDetector()
Implements abstract org. Creates a Detector for loops in the chain |
| protected int | getFreeBlock()
Implements abstract org. Finds a free block, and returns its offset. |
| protected int | getNextBlock(final int offset)
Implements abstract org. Works out what block follows the specified one. |
| protected void | releaseBuffer(ByteBuffer
the buffer buffer)Implements abstract org. Releases a mmap-ed buffer, which you are sure won't be used again |
| protected void | setNextBlock(final int offset, final int nextBlock)
Implements abstract org. Changes the record of what block follows the specified one. |
| pack-priv void | syncWithDataSource()
Writes the SBATs to their backing blocks, and updates the mini-stream size in the properties. |
| _filesystem | back to summary |
|---|---|
| private final POIFSFileSystem _filesystem | |
| _header | back to summary |
|---|---|
| private final HeaderBlock _header | |
| _mini_stream | back to summary |
|---|---|
| private POIFSStream _mini_stream | |
| _root | back to summary |
|---|---|
| private final RootProperty _root | |
| _sbat_blocks | back to summary |
|---|---|
| private final List<BATBlock> _sbat_blocks | |
| POIFSMiniStore | back to summary |
|---|---|
| pack-priv POIFSMiniStore(POIFSFileSystem filesystem, RootProperty root, List<BATBlock> sbats, HeaderBlock header) | |
| createBlockIfNeeded | back to summary |
|---|---|
| protected ByteBuffer createBlockIfNeeded(final int offset) throws IOException Implements abstract org. Load the block, extending the underlying stream if needed | |
| getBATBlockAndIndex | back to summary |
|---|---|
| protected BATBlock. Implements abstract org. Returns the BATBlock that handles the specified offset, and the relative index within it | |
| getBlockAt | back to summary |
|---|---|
| protected ByteBuffer getBlockAt(final int offset) throws IOException Implements abstract org. Load the block at the given offset. | |
| getBlockStoreBlockSize | back to summary |
|---|---|
| protected int getBlockStoreBlockSize() Implements abstract org. Doc from org. Returns the size of the blocks managed through the block store. | |
| getChainLoopDetector | back to summary |
|---|---|
| protected BlockStore. Implements abstract org. Doc from org. Creates a Detector for loops in the chain
| |
| getFreeBlock | back to summary |
|---|---|
| protected int getFreeBlock() throws IOException Implements abstract org. Finds a free block, and returns its offset. This method will extend the file if needed, and if doing so, allocate new FAT blocks to address the extra space. | |
| getNextBlock | back to summary |
|---|---|
| protected int getNextBlock(final int offset) Implements abstract org. Works out what block follows the specified one. | |
| releaseBuffer | back to summary |
|---|---|
| protected void releaseBuffer(ByteBuffer buffer) Implements abstract org. Doc from org. Releases a mmap-ed buffer, which you are sure won't be used again
| |
| setNextBlock | back to summary |
|---|---|
| protected void setNextBlock(final int offset, final int nextBlock) Implements abstract org. Changes the record of what block follows the specified one. | |
| syncWithDataSource | back to summary |
|---|---|
| pack-priv void syncWithDataSource() throws IOException Writes the SBATs to their backing blocks, and updates the mini-stream size in the properties. Stream size is based on full blocks used, not the data within the streams | |