List of all members.
Static Public Member Functions |
static InputStream | getInputStream (String href, String documentBase) throws java.io.FileNotFoundException, java.io.IOException |
static Reader | getReader (String href, String documentBase) throws java.io.FileNotFoundException, java.io.IOException |
static String | getDocumentBase (String href) |
static String | getRelativeURI (String href) |
static String | normalize (String absoluteURL) throws MalformedURLException |
static String | resolveAsString (String href, String documentBase) |
Detailed Description
A utility class for URI handling
- Author:
- Keith Visco
Member Function Documentation
static String org.exolab.castor.net.util.URIUtils.getDocumentBase |
( |
String |
href |
) |
[static] |
Returns the document base of the href argument
- Returns:
- the document base of the given href
static InputStream org.exolab.castor.net.util.URIUtils.getInputStream |
( |
String |
href, |
|
|
String |
documentBase | |
|
) |
| | throws java.io.FileNotFoundException, java.io.IOException [static] |
Returns an InputStream for the file represented by the href argument
- Parameters:
-
| href | the href of the file to get the input stream for. |
| documentBase | the document base of the href argument, if it is a relative href set documentBase to null if there is none. |
- Returns:
- an InputStream to the desired resource
- Exceptions:
-
| java.io.FileNotFoundException | when the file could not be found |
| java.io.IOException | |
Referenced by org.exolab.castor.net.util.URIUtils.getReader().
static Reader org.exolab.castor.net.util.URIUtils.getReader |
( |
String |
href, |
|
|
String |
documentBase | |
|
) |
| | throws java.io.FileNotFoundException, java.io.IOException [static] |
Returns a Reader for the file represented by the href argument
- Parameters:
-
| href | the href of the file to get the input stream for. |
| documentBase | the document base of the href argument, if it is a relative href set documentBase to null if there is none. |
- Returns:
- an InputStream to the desired resource
- Exceptions:
-
| java.io.FileNotFoundException | when the file could not be found |
References org.exolab.castor.net.util.URIUtils.getInputStream().
static String org.exolab.castor.net.util.URIUtils.getRelativeURI |
( |
String |
href |
) |
[static] |
Returns the relative URI of the href argument
- Returns:
- the relative URI the given href
static String org.exolab.castor.net.util.URIUtils.normalize |
( |
String |
absoluteURL |
) |
throws MalformedURLException [static] |
static String org.exolab.castor.net.util.URIUtils.resolveAsString |
( |
String |
href, |
|
|
String |
documentBase | |
|
) |
| | [static] |
The documentation for this class was generated from the following file: