org.apache.cocoon.poi.poifs.storage
public class: RawDataBlockList [javadoc |
source]
java.lang.Object
org.apache.cocoon.poi.poifs.storage.BlockListImpl
org.apache.cocoon.poi.poifs.storage.RawDataBlockList
All Implemented Interfaces:
BlockList
Direct Known Subclasses:
LocalRawDataBlockList
A list of RawDataBlocks instances, and methods to manage the list
- author:
Marc - Johnson (marc_johnson27591@hotmail.com
| Constructor: |
public RawDataBlockList(InputStream stream) throws IOException {
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 ]));
}
Constructor RawDataBlockList Parameters:
stream - the InputStream from which the data will be read
Throws:
IOException - on I/O errors, and if an incomplete
block is read
- exception:
IOException - on I/O errors, and if an incomplete
block is read
|