/**
  * Constructor from small blocks
  *
  * @param name the name of the POIFSDocument
  * @param blocks the small blocks making up the POIFSDocument
  * @param length the actual length of the POIFSDocument
  */
 public POIFSDocument(
     String name, POIFSBigBlockSize bigBlockSize, ListManagedBlock[] blocks, int length)
     throws IOException {
   _size = length;
   _property = new DocumentProperty(name, _size);
   _property.setDocument(this);
   if (Property.isSmall(_size)) {
     _big_store = new BigBlockStore(bigBlockSize, EMPTY_BIG_BLOCK_ARRAY);
     _small_store = new SmallBlockStore(bigBlockSize, convertRawBlocksToSmallBlocks(blocks));
   } else {
     _big_store = new BigBlockStore(bigBlockSize, convertRawBlocksToBigBlocks(blocks));
     _small_store = new SmallBlockStore(bigBlockSize, EMPTY_SMALL_BLOCK_ARRAY);
   }
 }
Beispiel #2
0
 /**
  * get the name of the Entry
  *
  * @return name
  */
 public String getName() {
   return _property.getName();
 }