|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.models.CPath
public class CPath
Immutable remote file pathname, with methods for easier handling.
path components are separated by a single slash. A path is always unicode and normalized so that it begins by a leading slash and never ends with a trailing slash, except for root path : '/'. Anti slashes are forbidden in CPath objects.
| Field Summary | |
|---|---|
static CPath |
ROOT
|
| Constructor Summary | |
|---|---|
CPath(String pathName)
|
|
| Method Summary | |
|---|---|
CPath |
add(String baseName)
Adds a component to the current path |
boolean |
equals(Object obj)
|
String |
getBaseName()
Return last element of this path as string (empty string if this object is root path) |
CPath |
getParent()
|
String |
getPathName()
Get the path name |
String |
getUrlEncoded()
URL encode the path |
int |
hashCode()
|
boolean |
isRoot()
Indicates if this path is the root in the filesystem |
List<String> |
split()
Split this path : "a/b/c" --> "a", "b", "c". |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CPath ROOT
| Constructor Detail |
|---|
public CPath(String pathName)
| Method Detail |
|---|
public String getUrlEncoded()
public String getBaseName()
public boolean isRoot()
public List<String> split()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getPathName()
public String toString()
toString in class Objectpublic CPath getParent()
public CPath add(String baseName)
baseName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||