/** * 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()); } } }
_property.setStartBlock(_stream.getStartBlock());
_property.setStartBlock(_stream.getStartBlock());
int block = _mini_stream.getStartBlock(); while(true) { loopDetector.claim(block);
int block = _mini_stream.getStartBlock(); while(true) { loopDetector.claim(block);