|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.lang.datatypes.URI
URI manipulation.
URI
Constructor Summary | |
URI(String str)
Constructs a URI by parsing the given string. |
Method Summary | |
String |
getAbsoluteUri(String baseuri)
Gets the absolute uri, given the base uri. |
String |
getRelativeUri(String baseuri)
Gets the uri relative to the base uri. |
boolean |
isAbsolute()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public URI(String str) throws URISyntaxException
str
- the string to be parsed into a URI.
NullPointerException
- if str is null.
URISyntaxException
- if the given string violates RFC 2396, as
augmented by the above deviations.Method Detail |
public String getRelativeUri(String baseuri) throws URISyntaxException
baseuri
- the base uri.
URISyntaxException
- if no valid URIs are given.public String getAbsoluteUri(String baseuri) throws URISyntaxException
baseuri
- the base uri.
URISyntaxException
- if no valid URIs are given.public String toString()
Object.toString()
public boolean isAbsolute()
URI.isAbsolute()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |