|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.poifs.filesystem.BlockStore
org.apache.poi.poifs.filesystem.NPOIFSMiniStore
public class NPOIFSMiniStore
This class handles the MiniStream (small block store)
in the NIO case for NPOIFSFileSystem
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.poi.poifs.filesystem.BlockStore |
|---|
BlockStore.ChainLoopDetector |
| Constructor Summary | |
|---|---|
protected |
NPOIFSMiniStore(NPOIFSFileSystem filesystem,
RootProperty root,
java.util.List<BATBlock> sbats,
HeaderBlock header)
|
| Method Summary | |
|---|---|
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 |
setNextBlock(int offset,
int nextBlock)
Changes the record of what block follows the specified one. |
protected void |
syncWithDataSource()
Writes the SBATs to their backing blocks, and updates the mini-stream size in the properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NPOIFSMiniStore(NPOIFSFileSystem filesystem,
RootProperty root,
java.util.List<BATBlock> sbats,
HeaderBlock header)
| Method Detail |
|---|
protected java.nio.ByteBuffer getBlockAt(int offset)
throws java.io.IOException
getBlockAt in class BlockStorejava.io.IOException
protected java.nio.ByteBuffer createBlockIfNeeded(int offset)
throws java.io.IOException
createBlockIfNeeded in class BlockStorejava.io.IOExceptionprotected BATBlock.BATBlockAndIndex getBATBlockAndIndex(int offset)
getBATBlockAndIndex in class BlockStoreprotected 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 BlockStorejava.io.IOException
protected BlockStore.ChainLoopDetector getChainLoopDetector()
throws java.io.IOException
BlockStore
getChainLoopDetector in class BlockStorejava.io.IOExceptionprotected int getBlockStoreBlockSize()
BlockStore
getBlockStoreBlockSize in class BlockStore
protected void syncWithDataSource()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||