/** * Writes the properties out into the given low-level stream */ public void write(NPOIFSStream stream) throws IOException { // TODO - Use a streaming write ByteArrayOutputStream baos = new ByteArrayOutputStream(); for(Property property : _properties) { if(property != null) { property.writeData(baos); } } stream.updateContents(baos.toByteArray()); // Update the start position if needed if(getStartBlock() != stream.getStartBlock()) { setStartBlock(stream.getStartBlock()); } } }
/** * Writes the properties out into the given low-level stream */ public void write(NPOIFSStream stream) throws IOException { // TODO - Use a streaming write ByteArrayOutputStream baos = new ByteArrayOutputStream(); for(Property property : _properties) { if(property != null) { property.writeData(baos); } } stream.updateContents(baos.toByteArray()); // Update the start position if needed if(getStartBlock() != stream.getStartBlock()) { setStartBlock(stream.getStartBlock()); } } }
_stream.updateContents(contents);
_stream.updateContents(contents);