Class BigBlock

java.lang.Object
org.docx4j.org.apache.poi.poifs.storage.BigBlock
All Implemented Interfaces:
BlockWritable
Direct Known Subclasses:
BATBlock, DocumentBlock, PropertyBlock

abstract class BigBlock extends Object implements BlockWritable
  • Field Details

  • Constructor Details

  • Method Details

    • doWriteData

      protected void doWriteData(OutputStream stream, byte[] data) throws IOException
      Default implementation of write for extending classes that contain their data in a simple array of bytes.
      Parameters:
      stream - the OutputStream to which the data should be written.
      data - the byte array of to be written.
      Throws:
      IOException - on problems writing to the specified stream.
    • writeData

      abstract void writeData(OutputStream stream) throws IOException
      Write the block's data to an OutputStream
      Parameters:
      stream - the OutputStream to which the stored data should be written
      Throws:
      IOException - on problems writing to the specified stream
    • writeBlocks

      public void writeBlocks(OutputStream stream) throws IOException
      Write the storage to an OutputStream
      Specified by:
      writeBlocks in interface BlockWritable
      Parameters:
      stream - the OutputStream to which the stored data should be written
      Throws:
      IOException - on problems writing to the specified stream