/** * get the blocks making up a particular stream in the list. The * blocks are removed from the list. * * @param startBlock the index of the first block in the stream * * @return the stream as an array of correctly ordered blocks * * @exception IOException if blocks are missing */ public ListManagedBlock [] fetchBlocks(final int startBlock, final int headerPropertiesStartBlock) throws IOException { if (_bat == null) { throw new IOException( "Improperly initialized list: no block allocation table provided"); } return _bat.fetchBlocks(startBlock, headerPropertiesStartBlock, this); }
/** * return the next block index * * @param index of the current block * * @return index of the next block (may be * POIFSConstants.END_OF_CHAIN, indicating end of chain * (duh)) * * @exception IOException if the current block is unused */ int getNextBlockIndex(int index) throws IOException { if (isUsed(index)) { return _entries.get(index); } throw new IOException("index " + index + " is unused"); }
/** * create a BlockAllocationTableReader from an array of raw data blocks * * @param blocks the raw data * @param raw_block_list the list holding the managed blocks * * @exception IOException */ BlockAllocationTableReader(POIFSBigBlockSize bigBlockSize, ListManagedBlock[] blocks, BlockList raw_block_list) throws IOException { this(bigBlockSize); setEntries(blocks, raw_block_list); }
new BlockAllocationTableReader(bigBlockSize, blockList.fetchBlocks(sbatStart, -1), list);
this(bigBlockSize); sanityCheckBlockCount(block_count); setEntries(blocks, raw_block_list);
BlockAllocationTableReader.sanityCheckBlockCount(_header.getBATCount());
new BlockAllocationTableReader(bigBlockSize, blockList.fetchBlocks(sbatStart, -1), list);
this(bigBlockSize); sanityCheckBlockCount(block_count); setEntries(blocks, raw_block_list);
BlockAllocationTableReader.sanityCheckBlockCount(_header.getBATCount());
new BlockAllocationTableReader( header_block.getBigBlockSize(), header_block.getBATCount(),
/** * create a BlockAllocationTableReader from an array of raw data blocks * * @param blocks the raw data * @param raw_block_list the list holding the managed blocks * * @exception IOException */ BlockAllocationTableReader(POIFSBigBlockSize bigBlockSize, ListManagedBlock[] blocks, BlockList raw_block_list) throws IOException { this(bigBlockSize); setEntries(blocks, raw_block_list); }
/** * return the next block index * * @param index of the current block * * @return index of the next block (may be * POIFSConstants.END_OF_CHAIN, indicating end of chain * (duh)) * * @exception IOException if the current block is unused */ int getNextBlockIndex(int index) throws IOException { if (isUsed(index)) { return _entries.get(index); } throw new IOException("index " + index + " is unused"); }
/** * get the blocks making up a particular stream in the list. The * blocks are removed from the list. * * @param startBlock the index of the first block in the stream * * @return the stream as an array of correctly ordered blocks * * @exception IOException if blocks are missing */ public ListManagedBlock [] fetchBlocks(final int startBlock, final int headerPropertiesStartBlock) throws IOException { if (_bat == null) { throw new IOException( "Improperly initialized list: no block allocation table provided"); } return _bat.fetchBlocks(startBlock, headerPropertiesStartBlock, this); }
new BlockAllocationTableReader( header_block.getBigBlockSize(), header_block.getBATCount(),
new BlockAllocationTableReader(header_block.getBigBlockSize(), header_block.getBATCount(), header_block.getBATArray(),
new BlockAllocationTableReader(header_block.getBigBlockSize(), header_block.getBATCount(), header_block.getBATArray(),
new BlockAllocationTableReader(header_block.getBigBlockSize(), header_block.getBATCount(), header_block.getBATArray(),
new BlockAllocationTableReader(header_block.getBigBlockSize(), header_block.getBATCount(), header_block.getBATArray(),