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

RawDataBlockList

public class RawDataBlockList extends BlockListImpl
A list of RawDataBlocks instances, and methods to manage the list
author
Marc Johnson (mjohnson at apache dot org

Fields Summary
Constructors Summary
public RawDataBlockList(InputStream stream)
Constructor RawDataBlockList

param
stream the InputStream from which the data will be read
exception
IOException on I/O errors, and if an incomplete block is read

        List blocks = new ArrayList();

        while (true)
        {
            RawDataBlock block = new RawDataBlock(stream);

            if (block.eof())
            {
                break;
            }
            blocks.add(block);
        }
        setBlocks(( RawDataBlock [] ) blocks.toArray(new RawDataBlock[ 0 ]));
    
Methods Summary