|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.util.UriUtil
A collection of uri related utility methods.
| Constructor Summary | |
UriUtil()
|
|
| Method Summary | |
static String |
encodeIUri(String iuri)
|
static File |
getFile(String uri)
Try to retreive a file from a uri. |
static String |
getUri(String href,
String baseUri)
Merge a uri and a baseUri to another uri. |
static boolean |
isAbsolutePath(String uri)
Test if the uri is an absolute path. |
static boolean |
isAbsoluteUri(String uri)
Test if the uri is an absolute uri. |
static XmlSource |
resolveUri(String href,
String baseUri,
UriResolver resolver)
Resolve a uri. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UriUtil()
| Method Detail |
public static boolean isAbsoluteUri(String uri)
public static boolean isAbsolutePath(String uri)
public static String getUri(String href,
String baseUri)
href - an absolute or relative uribaseUri - an uri used to turn a relative uri into an absolute.
Can be null.
public static XmlSource resolveUri(String href,
String baseUri,
UriResolver resolver)
throws IOException
href - a href attribute, which may be relative or absolute.baseUri - the base uri in effect when the href attribute was encounteredresolver - a UriResolver, can be null
IOException - if an error occurs when trying to resolve the URI.public static File getFile(String uri)
public static String encodeIUri(String iuri)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||