|Summary:||Refactor PackagePartName handling and add getUnusedPartIndex method|
|Product:||POI||Reporter:||Andreas Beeker <kiwiwings>|
|Component:||OPC||Assignee:||POI Developers List <dev>|
Description Andreas Beeker 2017-12-31 00:52:20 UTC
While working on the ObjectData interface for SL Common, I wanted to have a central method to request a new resource, i.e. a new file name with a unique index - this lead to the new method OPCPackage.getUnusedPartIndex(...) As I had to work with PackagePartNames, I've realized that the current implementation carries around the errorFlag a lot instead of an appropriate control flow - so I also eliminated that. And in PackagePartCollection its better to use a sorted TreeMap.