/** * reading constructor (used when we've read in a file and we want * to extract the property table from it). Populates the * properties thoroughly * * @param startBlock the first block of the property table * @param blockList the list of blocks * * @exception IOException if anything goes wrong (which should be * a result of the input being NFG) */ public PropertyTable(HeaderBlock headerBlock, RawDataBlockList blockList) : base(headerBlock, PropertyFactory.ConvertToProperties(blockList.FetchBlocks(headerBlock.PropertyStart, -1))) { _bigBigBlockSize = headerBlock.BigBlockSize; _blocks = null; }
/** * reading constructor (used when we've read in a file and we want * to extract the property table from it). Populates the * properties thoroughly * * @param startBlock the first block of the property table * @param blockList the list of blocks * * @exception IOException if anything goes wrong (which should be * a result of the input being NFG) */ public PropertyTable(int startBlock, RawDataBlockList blockList) { _start_block = POIFSConstants.END_OF_CHAIN; _blocks = null; _properties = PropertyFactory .ConvertToProperties(blockList.FetchBlocks(startBlock, -1)); PopulatePropertyTree(( DirectoryProperty )_properties[0]); }