public static String getName ( URI uri ) { if ( uri == null ) { throw MESSAGES . nullArgument ( "uri" ) ; } String name = uri . getPath ( ) ; if ( name != null ) { // TODO: Not correct for certain uris like jar:...!/ int lastSlash = name . lastIndexOf ( ' ' ) ; if ( lastSlash > 0 ) { name = name . substring ( lastSlash + 1 ) ; } } return name ; }
Get the name .