public void replaceContents(InputStream stream) throws IOException { free(); int size = store(stream); _property.setStartBlock(_stream.getStartBlock()); _property.updateSize(size); }
/** * Constructor for a new Document * * @param name the name of the POIFSDocument * @param stream the InputStream we read data from */ public POIFSDocument(String name, POIFSFileSystem filesystem, InputStream stream) throws IOException { this._filesystem = filesystem; // Store it int length = store(stream); // Build the property for it this._property = new DocumentProperty(name, length); _property.setStartBlock(_stream.getStartBlock()); _property.setDocument(this); }
public void replaceContents(InputStream stream) throws IOException { free(); int size = store(stream); _property.setStartBlock(_stream.getStartBlock()); _property.updateSize(size); }
/** * Constructor for a new Document * * @param name the name of the POIFSDocument * @param stream the InputStream we read data from */ public POIFSDocument(String name, POIFSFileSystem filesystem, InputStream stream) throws IOException { this._filesystem = filesystem; // Store it int length = store(stream); // Build the property for it this._property = new DocumentProperty(name, length); _property.setStartBlock(_stream.getStartBlock()); _property.setDocument(this); }