public static String getSimplePathForResources ( String entryName , String path ) { String [ ] components = path . split ( "!" ) ; if ( components . length == 3 ) { if ( components [ 1 ] . endsWith ( ".jar" ) ) { return components [ 2 ] . substring ( 1 ) ; } else { return entryName . replaceFirst ( components [ 1 ] , "" ) . substring ( 1 ) ; } } return entryName ; }
Method used to simplify an entryName