Class NPOIFSStream

java.lang.Object
org.docx4j.org.apache.poi.poifs.filesystem.NPOIFSStream
All Implemented Interfaces:
Iterable<ByteBuffer>

public class NPOIFSStream extends Object implements Iterable<ByteBuffer>
This handles reading and writing a stream within a NPOIFSFileSystem. It can supply an iterator to read blocks, and way to write out to existing and new blocks. Most users will want a higher level version of this, which deals with properties to track which stream this is. This only works on big block streams, it doesn't handle small block ones. This uses the new NIO code TODO Implement a streaming write method, and append
  • Constructor Details

    • NPOIFSStream

      public NPOIFSStream(BlockStore blockStore, int startBlock)
      Constructor for an existing stream. It's up to you to know how to get the start block (eg from a HeaderBlock or a Property)
    • NPOIFSStream

      public NPOIFSStream(BlockStore blockStore)
      Constructor for a new stream. A start block won't be allocated until you begin writing to it.
  • Method Details