|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opengis.cite.owc.util.URIUtils
public class URIUtils
Provides a collection of utility methods for manipulating or resolving URI references.
Constructor Summary | |
---|---|
URIUtils()
|
Method Summary | |
---|---|
static String |
resolveRelativeURI(String baseURI,
String path)
Constructs an absolute URI value from a relative reference and a base URI. |
static Document |
resolveURIAsDocument(URI uriRef)
Parses the content of the given URI as an XML document and returns a new DOM Document object. |
static File |
resolveURIAsFile(URI uriRef)
Resolves the given URI and stores the resulting resource representation in a local file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIUtils()
Method Detail |
---|
public static Document resolveURIAsDocument(URI uriRef) throws SAXException, IOException
uriRef
- An absolute URI specifying the location of an XML resource.
SAXException
- If the resource cannot be parsed.
IOException
- If the resource is not accessible.public static File resolveURIAsFile(URI uriRef) throws IOException
uriRef
- An absolute URI specifying the location of some resource.
IOException
- If an IO error occurs.public static String resolveRelativeURI(String baseURI, String path)
baseURI
- The base URI; it must contain at least the scheme component.path
- A URI reference (path) that is relative to the given base URI.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |