|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bounce.util.URIUtils
public class URIUtils
Put comment...
Constructor Summary | |
---|---|
URIUtils()
|
Method Summary | |
---|---|
static File |
composeFile(URI base,
String relativePath)
Return the absolute path, composed from a base URI and a relative path. |
static String |
composePath(URI base,
String relativePath)
Return the absolute path, composed from a base URI and a relative path. |
static URI |
composeURI(URI base,
String relativePath)
Return the absolute URI, composed from a base URI and a relative path. |
static URI |
createURI(String path)
Creates a URI from a path, the path can be relative or absolute, '\' and '/' are normalised. |
static String |
getDirectoryName(URI uri)
Returns the name of the directory that is pointed to by this URI. |
static String |
getExtension(URI uri)
Returns the extension of the file that is pointed to by this URI. |
static String |
getName(URI uri)
Returns the name of the file that is pointed to by this URI. |
static String |
getRelativePath(URI base,
File file)
Return the path for the file relative to the base uri. |
static URI |
getRelativeURI(URI base,
URI uri)
Return the uri for the uri relative to the base uri. |
static File |
toFile(URI uri)
Creates a File from a URI, the URI can be relative or absolute, this method returns only a file for the Scheme Specific Part. |
static String |
toString(URI uri)
Creates a String from a URI, the URI can be relative or absolute, the URI is decoded. |
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 String getName(URI uri)
uri
- the uri to get the name for.
public static String getExtension(URI uri)
uri
- the uri to get the extension for.
public static String getDirectoryName(URI uri)
uri
- the uri to get the directory name for.
public static URI createURI(String path)
path
- the path to create the URI for.
public static String toString(URI uri)
uri
- the URI to return the string representation for.
public static File toFile(URI uri)
uri
- the URI to create the file for.
public static URI getRelativeURI(URI base, URI uri)
base
- the base uri.uri
- the file location to get the relative path for.
public static String getRelativePath(URI base, File file)
base
- the base url.file
- the file location to get the relative path for.
public static URI composeURI(URI base, String relativePath)
base
- the base uri.relativePath
- the relative path.
public static File composeFile(URI base, String relativePath)
base
- the base uri.relativePath
- the relative path.
public static String composePath(URI base, String relativePath)
base
- the base uri.relativePath
- the relative path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |