Пример #1
0
 /**
  * Constructor for a new stream. A start block won't
  *  be allocated until you begin writing to it.
  */
 public NPOIFSStream(BlockStore blockStore)
 {
     this.blockStore = blockStore;
     this.startBlock = POIFSConstants.END_OF_CHAIN;
 }
Пример #2
0
 /**
  * Constructor for an existing stream. It's up to you
  *  to know how to Get the start block (eg from a
  *  {@link HeaderBlock} or a {@link Property})
  */
 public NPOIFSStream(BlockStore blockStore, int startBlock)
 {
     this.blockStore = blockStore;
     this.startBlock = startBlock;
 }