|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.net.impl.URIUtils
public class URIUtils
A utility class for URI handling
Constructor Summary | |
---|---|
URIUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getDocumentBase(java.lang.String href)
Returns the document base of the href argument |
static java.io.InputStream |
getInputStream(java.lang.String href,
java.lang.String documentBase)
Returns an InputStream for the file represented by the href argument |
static java.io.OutputStream |
getOutputStream(java.lang.String href,
java.lang.String documentBase)
Returns an OutputStream for the file represented by the href argument |
static java.io.Reader |
getReader(java.lang.String href,
java.lang.String documentBase)
Returns a Reader for the file represented by the href argument |
static java.lang.String |
getRelativeURI(java.lang.String href)
Returns the relative URI of the href argument |
static java.io.Writer |
getWriter(java.lang.String href,
java.lang.String documentBase)
Returns a Writer for the file represented by the href argument |
static java.lang.String |
resolveAsString(java.lang.String href,
java.lang.String documentBase)
Returns the given href + documentBase |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIUtils()
Method Detail |
---|
public static java.io.InputStream getInputStream(java.lang.String href, java.lang.String documentBase) throws java.io.FileNotFoundException, java.io.IOException
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
public static java.io.OutputStream getOutputStream(java.lang.String href, java.lang.String documentBase) throws java.io.FileNotFoundException, java.io.IOException
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
public static java.io.Reader getReader(java.lang.String href, java.lang.String documentBase) throws java.io.FileNotFoundException, java.io.IOException
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
public static java.io.Writer getWriter(java.lang.String href, java.lang.String documentBase) throws java.io.FileNotFoundException, java.io.IOException
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
public static java.lang.String getDocumentBase(java.lang.String href)
public static java.lang.String getRelativeURI(java.lang.String href)
public static java.lang.String resolveAsString(java.lang.String href, java.lang.String documentBase)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |