Constructor RawDataBlockListparamstream the InputStream from which the data will be readexceptionIOException 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 ]));
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 ]));