Class OPOIFSDocument.BigBlockStore

java.lang.Object
org.docx4j.org.apache.poi.poifs.filesystem.OPOIFSDocument.BigBlockStore
Enclosing class:
OPOIFSDocument

private static final class OPOIFSDocument.BigBlockStore extends Object
  • Field Details

  • Constructor Details

    • BigBlockStore

      BigBlockStore(POIFSBigBlockSize bigBlockSize, DocumentBlock[] blocks)
      Constructor
      Parameters:
      blocks - the blocks making up the store
    • BigBlockStore

      BigBlockStore(POIFSBigBlockSize bigBlockSize, POIFSDocumentPath path, String name, int size, POIFSWriterListener writer)
      Constructor for a big block store that will be written later
      Parameters:
      path - path of the document
      name - name of the document
      size - length of the document
      writer - the object that will eventually write the document
  • Method Details

    • isValid

      boolean isValid()
      Returns:
      true if this store is a valid source of data
    • getBlocks

      DocumentBlock[] getBlocks()
      Returns:
      the DocumentBlocks
    • writeBlocks

      void writeBlocks(OutputStream stream) throws IOException
      write the blocks to a stream
      Parameters:
      stream - the stream to which the data is to be written
      Throws:
      IOException
    • countBlocks

      int countBlocks()
      Returns:
      number of big blocks making up this document