/** * @return the SmallDocumentBlocks */ SmallDocumentBlock[] getBlocks() { if (isValid() && _writer != null) { ByteArrayOutputStream stream = new ByteArrayOutputStream(_size); DocumentOutputStream dstream = new DocumentOutputStream(stream, _size); _writer.processPOIFSWriterEvent(new POIFSWriterEvent(dstream, _path, _name, _size)); _smallBlocks = SmallDocumentBlock.convert(_bigBlockSize, stream.toByteArray(), _size); } return _smallBlocks; } } // end private class SmallBlockStore
/** * @return the SmallDocumentBlocks */ SmallDocumentBlock[] getBlocks() { if (isValid() && _writer != null) { ByteArrayOutputStream stream = new ByteArrayOutputStream(_size); DocumentOutputStream dstream = new DocumentOutputStream(stream, _size); _writer.processPOIFSWriterEvent(new POIFSWriterEvent(dstream, _path, _name, _size)); _smallBlocks = SmallDocumentBlock.convert(_bigBlockSize, stream.toByteArray(), _size); } return _smallBlocks; } } // end private class SmallBlockStore
_property.setDocument(this); if (_property.shouldUseSmallBlocks()) { _small_store = new SmallBlockStore(bigBlockSize,SmallDocumentBlock.convert(bigBlockSize,bigBlocks, _size)); _big_store = new BigBlockStore(bigBlockSize,new DocumentBlock[0]); } else {
_property.setDocument(this); if (_property.shouldUseSmallBlocks()) { _small_store = new SmallBlockStore(bigBlockSize,SmallDocumentBlock.convert(bigBlockSize,bigBlocks, _size)); _big_store = new BigBlockStore(bigBlockSize,new DocumentBlock[0]); } else {