Currently I'm using the 'open(java.lang.String path)' method to build the package.
I have the file object and inputstream objects built... maybe I should be using those instead? I'll whip up a minimal java example and shoot it to the list. -----Original Message----- From: Nick Burch [mailto:[email protected]] Sent: Tuesday, August 03, 2010 12:12 PM To: POI Users List Subject: Re: Closing an OPCPackage object On Mon, 2 Aug 2010, Matt Rogghe wrote: > After playing around for a while and making sure all input/output > streams and buffers have been closed gracefully and the package object > is also closed gracefully, I decided to use the .revert() method of the > OPCPackage class in addition to the close() method. close should call closeImpl if it was opened from a file, which ought to close down the input source too Are you creating your opcpackage from an InputStream or a File? Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
