public class POIFSMiniStore extends BlockStore
POIFSFileSystem
BlockStore.ChainLoopDetector
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
createBlockIfNeeded(int offset)
Load the block, extending the underlying stream if needed
|
protected BATBlock.BATBlockAndIndex |
getBATBlockAndIndex(int offset)
Returns the BATBlock that handles the specified offset,
and the relative index within it
|
protected java.nio.ByteBuffer |
getBlockAt(int offset)
Load the block at the given offset.
|
protected int |
getBlockStoreBlockSize()
Returns the size of the blocks managed through the block store.
|
protected BlockStore.ChainLoopDetector |
getChainLoopDetector()
Creates a Detector for loops in the chain
|
protected int |
getFreeBlock()
Finds a free block, and returns its offset.
|
protected int |
getNextBlock(int offset)
Works out what block follows the specified one.
|
protected void |
releaseBuffer(java.nio.ByteBuffer buffer)
Releases a mmap-ed buffer, which you are sure won't be used again
|
protected void |
setNextBlock(int offset,
int nextBlock)
Changes the record of what block follows the specified one.
|
protected java.nio.ByteBuffer getBlockAt(int offset)
getBlockAt
in class BlockStore
protected java.nio.ByteBuffer createBlockIfNeeded(int offset) throws java.io.IOException
createBlockIfNeeded
in class BlockStore
java.io.IOException
protected BATBlock.BATBlockAndIndex getBATBlockAndIndex(int offset)
getBATBlockAndIndex
in class BlockStore
protected int getNextBlock(int offset)
getNextBlock
in class BlockStore
protected void setNextBlock(int offset, int nextBlock)
setNextBlock
in class BlockStore
protected int getFreeBlock() throws java.io.IOException
getFreeBlock
in class BlockStore
java.io.IOException
protected BlockStore.ChainLoopDetector getChainLoopDetector()
BlockStore
getChainLoopDetector
in class BlockStore
protected int getBlockStoreBlockSize()
BlockStore
getBlockStoreBlockSize
in class BlockStore
protected void releaseBuffer(java.nio.ByteBuffer buffer)
BlockStore
releaseBuffer
in class BlockStore
buffer
- the bufferCopyright 2021 The Apache Software Foundation or its licensors, as applicable.