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) |
A utility class for URI handling
| static String org.exolab.castor.net.util.URIUtils.getDocumentBase | ( | String | href | ) | [static] |
Returns the document base of the href argument
| 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
| 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. |
| 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
| 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. |
| 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
| static String org.exolab.castor.net.util.URIUtils.normalize | ( | String | absoluteURL | ) | throws MalformedURLException [static] |
This method removes "." or ".." from absolute URL. I needed this method because the JDK doesn't do this automatically when creating URLs.
| uri | the absolute URI to normalize |
Referenced by org.exolab.castor.net.util.URIUtils.resolveAsString().
| static String org.exolab.castor.net.util.URIUtils.resolveAsString | ( | String | href, | |
| String | documentBase | |||
| ) | [static] |
References org.exolab.castor.net.util.URIUtils.normalize().
1.7.0