org.exolab.castor.net.util
public class URIUtils extends Object
Method Summary | |
---|---|
static String | getDocumentBase(String href)
Returns the document base of the href argument |
static InputStream | getInputStream(String href, String documentBase)
Returns an InputStream for the file represented by the href
argument |
static Reader | getReader(String href, String documentBase)
Returns a Reader for the file represented by the href
argument |
static String | getRelativeURI(String href)
Returns the relative URI of the href argument
|
static String | resolveAsString(String href, String documentBase) |
Returns: the document base of the given href
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
Throws: java.io.FileNotFoundException when the file could not be found
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
Throws: java.io.FileNotFoundException when the file could not be found
Returns: the relative URI the given href