DocumentOutputStream(POIFSDocument document, long limit) throws IOException { _document = document; _document.free(); _property = document.getDocumentProperty(); _limit = limit; }
public void replaceContents(InputStream stream) throws IOException { free(); int size = store(stream); _property.setStartBlock(_stream.getStartBlock()); _property.updateSize(size); }
/** * remove an entry * * @param entry to be removed */ void remove(EntryNode entry) throws IOException { // If it's a document, free the blocks if (entry instanceof DocumentEntry) { POIFSDocument doc = new POIFSDocument((DocumentProperty)entry.getProperty(), this); doc.free(); } // Now zap it from the properties list _property_table.removeProperty(entry.getProperty()); }
DocumentOutputStream(POIFSDocument document, long limit) throws IOException { _document = document; _document.free(); _property = document.getDocumentProperty(); _limit = limit; }
public void replaceContents(InputStream stream) throws IOException { free(); int size = store(stream); _property.setStartBlock(_stream.getStartBlock()); _property.updateSize(size); }
/** * remove an entry * * @param entry to be removed */ void remove(EntryNode entry) throws IOException { // If it's a document, free the blocks if (entry instanceof DocumentEntry) { POIFSDocument doc = new POIFSDocument((DocumentProperty)entry.getProperty(), this); doc.free(); } // Now zap it from the properties list _property_table.removeProperty(entry.getProperty()); }