Package org.smooks.support
Class URIUtil
- java.lang.Object
-
- org.smooks.support.URIUtil
-
public abstract class URIUtil extends Object
URI
utility methods.- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description URIUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
getParent(URI uri)
Get the parent URI of the supplied URI
-
-
-
Method Detail
-
getParent
public static URI getParent(URI uri) throws URISyntaxException
Get the parent URI of the supplied URI- Parameters:
uri
- The input URI for which the parent URI is being requrested.- Returns:
- The parent URI. Returns a URI instance equivalent to "../" if the supplied URI path has no parent.
- Throws:
URISyntaxException
- Failed to reconstruct the parent URI.
-
-