|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.utils.URIUtils
public class URIUtils
INTERNAL: Utilities for working with URIs.
Constructor Summary | |
---|---|
URIUtils()
|
Method Summary | |
---|---|
static URILocator |
getFileURI(java.io.File file)
INTERNAL: Given a File object, produce a corresponding URILocator object in the file: URI scheme. |
static java.lang.String |
getFileURIString(java.io.File file)
INTERNAL: Given a File object, produce a corresponding URI string object in the file: URI scheme. |
static URILocator |
getURI(java.lang.String uri_or_filename)
INTERNAL: Turns a string containing a url or a filename into a proper LocatorIF object. |
static java.io.File |
getURIFile(LocatorIF file)
INTERNAL: Given a URILocator in the file: URI scheme, produce the corresponding File object. |
static URILocator |
getURILocator(java.lang.String uri)
INTERNAL: Return URILocator from uri string. |
static java.lang.String |
toHexString(byte n)
INTERNAL: Make hex string for integer. |
static java.net.URL |
toURL(java.io.File file)
INTERNAL: Use this method instead of File.toURL() to get URLs for files. |
static java.lang.String |
urlEncode(java.lang.String str,
java.lang.String charenc)
INTERNAL: URL-encodes the string by encoding reserved characters using %-codes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URIUtils()
Method Detail |
---|
public static URILocator getFileURI(java.io.File file)
public static java.lang.String getFileURIString(java.io.File file)
public static java.io.File getURIFile(LocatorIF file) throws java.net.MalformedURLException
java.net.MalformedURLException
public static URILocator getURI(java.lang.String uri_or_filename)
public static java.lang.String urlEncode(java.lang.String str, java.lang.String charenc) throws java.io.IOException
str
- String to be URL-encoded.charenc
- Character encoding to use in URL. Usually UTF-8.
java.io.IOException
public static java.lang.String toHexString(byte n)
public static URILocator getURILocator(java.lang.String uri)
public static java.net.URL toURL(java.io.File file) throws java.net.MalformedURLException
java.net.MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |