|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.io.vfmem.PathUtil
public class PathUtil
Helper methods to deal with paths in the in-memory "file system".
These methods are similar to those in java.io.File.
Note: The system has been hardcoded to use the separator specified
by java.io.File.
| Field Summary | |
|---|---|
static char |
SEP
|
static java.lang.String |
SEP_STR
|
| Constructor Summary | |
|---|---|
private |
PathUtil()
This class cannot be instantiated. |
| Method Summary | |
|---|---|
private static void |
basicPathChecks(java.lang.String path)
|
static java.lang.String |
getBaseName(java.lang.String path)
Returns the base name of the path. |
static java.lang.String |
getParent(java.lang.String path)
Returns the parent of the path. |
static java.lang.String |
join(java.lang.String parent,
java.lang.String base)
Joins the two paths by inserting the separator chararcter between them. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char SEP
public static final java.lang.String SEP_STR
| Constructor Detail |
|---|
private PathUtil()
| Method Detail |
|---|
private static void basicPathChecks(java.lang.String path)
public static java.lang.String getBaseName(java.lang.String path)
path - the path to process
public static java.lang.String getParent(java.lang.String path)
path - the path to process
"") if
the path is a relative path, or null if XXXX TODO
public static java.lang.String join(java.lang.String parent,
java.lang.String base)
parent - parent directorybase - file/directory name
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||