On Tue, 3 Aug 2010, Matt Rogghe wrote:
I indicated the wrong builder method previously. I use the 'open(java.lang.String path, PackageAccess access)' method. This is the only open method which contains an option to control the package access method.
The close method, when called on a read only package, used to give a warning and do nothing else. I've changed it to also do a revert, as well as giving the warning telling you to do a revert not close on a read only package
I've also added in a check that stops you doing a save(sameFile) when you really meant to do a close - that sort of thing tends to make your jvm keel over...
Try org.apache.poi.openxml4j.opc.TestPackage and ensure it works for you - it should cover the main use cases you described
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
