Class POIFSStream

  • All Implemented Interfaces:
    Iterable<ByteBuffer>

    public class POIFSStream
    extends Object
    implements Iterable<ByteBuffer>
    This handles reading and writing a stream within a POIFSFileSystem. 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 Detail

      • POIFSStream

        public POIFSStream​(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)
      • POIFSStream

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