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

BigBlock

public abstract class BigBlock extends Object implements BlockWritable
Abstract base class of all POIFS block storage classes. All extensions of BigBlock should write 512 bytes of data when requested to write their data. This class has package scope, as there is no reason at this time to make the class public.
author
Marc Johnson (mjohnson at apache dot org)

Fields Summary
Constructors Summary
Methods Summary
protected voiddoWriteData(java.io.OutputStream stream, byte[] data)
Default implementation of write for extending classes that contain their data in a simple array of bytes.

param
stream the OutputStream to which the data should be written.
param
data the byte array of to be written.
exception
IOException on problems writing to the specified stream.

        stream.write(data);
    
public voidwriteBlocks(java.io.OutputStream stream)
Write the storage to an OutputStream

param
stream the OutputStream to which the stored data should be written
exception
IOException on problems writing to the specified stream

        writeData(stream);
    
abstract voidwriteData(java.io.OutputStream stream)
Write the block's data to an OutputStream

param
stream the OutputStream to which the stored data should be written
exception
IOException on problems writing to the specified stream