|
|
|||||||||
| 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 java.io.File |
composeFile(java.net.URI base,
java.lang.String relativePath)
Return the absolute path, composed from a base URI and a relative path. |
static java.lang.String |
composePath(java.net.URI base,
java.lang.String relativePath)
Return the absolute path, composed from a base URI and a relative path. |
static java.net.URI |
composeURI(java.net.URI base,
java.lang.String relativePath)
Return the absolute URI, composed from a base URI and a relative path. |
static java.net.URI |
createURI(java.lang.String path)
Creates a URI from a path, the path can be relative or absolute, '\' and '/' are normalised. |
static java.lang.String |
getDirectoryName(java.net.URI uri)
Returns the name of the directory that is pointed to by this URI. |
static java.lang.String |
getExtension(java.net.URI uri)
Returns the extension of the file that is pointed to by this URI. |
static java.lang.String |
getName(java.net.URI uri)
Returns the name of the file that is pointed to by this URI. |
static java.lang.String |
getRelativePath(java.net.URI base,
java.io.File file)
Return the path for the file relative to the base uri. |
static java.net.URI |
getRelativeURI(java.net.URI base,
java.net.URI uri)
Return the uri for the uri relative to the base uri. |
static java.io.File |
toFile(java.net.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 java.lang.String |
toString(java.net.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 java.lang.String getName(java.net.URI uri)
uri - the uri to get the name for.
public static java.lang.String getExtension(java.net.URI uri)
uri - the uri to get the extension for.
public static java.lang.String getDirectoryName(java.net.URI uri)
uri - the uri to get the directory name for.
public static java.net.URI createURI(java.lang.String path)
path - the path to create the URI for.
public static java.lang.String toString(java.net.URI uri)
uri - the URI to return the string representation for.
public static java.io.File toFile(java.net.URI uri)
uri - the URI to create the file for.
public static java.net.URI getRelativeURI(java.net.URI base,
java.net.URI uri)
base - the base uri.uri - the file location to get the relative path for.
public static java.lang.String getRelativePath(java.net.URI base,
java.io.File file)
base - the base url.file - the file location to get the relative path for.
public static java.net.URI composeURI(java.net.URI base,
java.lang.String relativePath)
base - the base uri.relativePath - the relative path.
public static java.io.File composeFile(java.net.URI base,
java.lang.String relativePath)
base - the base uri.relativePath - the relative path.
public static java.lang.String composePath(java.net.URI base,
java.lang.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 | |||||||||