public class PathUtil
extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
static char |
SEP |
static java.lang.String |
SEP_STR |
| Modifier | Constructor and Description |
|---|---|
private |
PathUtil()
This class cannot be instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private static void basicPathChecks(java.lang.String path)
public static java.lang.String getBaseName(java.lang.String path)
path - the path to processpublic 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 TODOpublic static java.lang.String join(java.lang.String parent,
java.lang.String base)
parent - parent directorybase - file/directory nameApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.