Java Utililty Methods URI to Local Name

List of utility methods to do URI to Local Name

Description

The list of methods to do URI to Local Name are organized into topic(s).

Method

StringgetName(URI uri)
get Name
String name = null;
if (uri != null) {
    String path = uri.getPath();
    if (path != null) {
        int index = path.lastIndexOf('/');
        name = path.substring(index + 1);
return name;
StringgetNameSpace(URI uri)
get Name Space
return getNameSpace(uri.toString());
URIgetNameSpace(URI uri)
get Name Space
return getNameSpace(uri.toASCIIString());