FileDocCategorySizeDatePackage
SmallBlockTableReader.javaAPI DocApache Poi 3.0.12219Mon Jan 01 12:39:36 GMT 2007org.apache.poi.poifs.storage

SmallBlockTableReader

public class SmallBlockTableReader extends Object
This class implements reading the small document block list from an existing file
author
Marc Johnson (mjohnson at apache dot org)

Fields Summary
Constructors Summary
Methods Summary
public static org.apache.poi.poifs.storage.BlockListgetSmallDocumentBlocks(org.apache.poi.poifs.storage.RawDataBlockList blockList, org.apache.poi.poifs.property.RootProperty root, int sbatStart)
fetch the small document block list from an existing file

param
blockList the raw data from which the small block table will be extracted
param
root the root property (which contains the start block and small block table size)
param
sbatStart the start block of the SBAT
return
the small document block list
exception
IOException

        BlockList list =
            new SmallDocumentBlockList(SmallDocumentBlock
                .extract(blockList.fetchBlocks(root.getStartBlock())));

        new BlockAllocationTableReader(blockList.fetchBlocks(sbatStart),
                                       list);
        return list;