|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.fs.FileSystemPathUtil
The FileSystemPathUtil
utility class ...
Field Summary | |
static BitSet |
SAVE_NAMECHARS
The list of characters that are not encoded by the escapeName(String)
and unescape(String) methods. |
static BitSet |
SAVE_PATHCHARS
The list of characters that are not encoded by the escapePath(String)
and unescape(String) methods. |
Method Summary | |
static String |
escapeName(String name)
Encodes the specified name . |
static String |
escapePath(String path)
Encodes the specified path . |
static String |
getName(String path)
Returns the name of the specified path . |
static String |
getParentDir(String path)
Returns the parent directory of the specified path . |
static String |
unescape(String pathOrName)
Decodes the specified path/name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final BitSet SAVE_NAMECHARS
escapeName(String)
and unescape(String)
methods. They contains the characters
which can savely be used in file names:
public static final BitSet SAVE_PATHCHARS
escapePath(String)
and unescape(String)
methods. They contains the characters
which can savely be used in file paths:
Method Detail |
public static String escapePath(String path)
path
. Same as
escapeName(String)
except that the separator
character /
is regarded as a legal path character
that needs no escaping.
path
- the path to encode.
public static String escapeName(String name)
name
. Same as
escapePath(String)
except that the separator character
/
is regarded as an illegal character that needs
escaping.
name
- the name to encode.
public static String unescape(String pathOrName)
pathOrName
- the escaped path/name
public static String getParentDir(String path)
path
.
path
- a file system path denoting a directory or a file.
public static String getName(String path)
path
.
path
- a file system path denoting a directory or a file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |