public static PackageIndex < Integer > createPackageIndex ( String resourceName ) { PackageIndex < Integer > packageIndex = new PackageIndex < Integer > ( ) ; BufferedReader br = null ; try { br = getLibertyTraceListReader ( resourceName ) ; addFiltersAndValuesToIndex ( br , packageIndex ) ; } catch ( IOException e ) { System . err . println ( "Unable to load " + resourceName ) ; } finally { tryToCloseReader ( br ) ; } packageIndex . compact ( ) ; return packageIndex ; }
Create the package index from the contents of the resource .