|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.io.Paths.Splitter
public static class Paths.Splitter
Splits a given path name into its parent path name and member name.
| Field Summary | |
|---|---|
private int |
fixum
|
private String |
memberName
|
private String |
parentPath
|
private char |
separatorChar
|
| Constructor Summary | |
|---|---|
Paths.Splitter(char separatorChar,
boolean keepTrailingSeparator)
Constructs a new splitter. |
|
| Method Summary | |
|---|---|
String |
getMemberName()
Returns the member name. |
String |
getParentPath()
Returns the parent path name. |
private static int |
lastIndexNot(String path,
char separatorChar,
int last)
|
Paths.Splitter |
split(String path)
Splits the given path name into its parent path name and member name, recognizing platform specific file system roots. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final char separatorChar
private final int fixum
@CheckForNull private String parentPath
private String memberName
| Constructor Detail |
|---|
public Paths.Splitter(char separatorChar,
boolean keepTrailingSeparator)
separatorChar - the file name separator character.keepTrailingSeparator - whether or not a parent path name
should have a single trailing separator if present in the
original path name.| Method Detail |
|---|
public Paths.Splitter split(String path)
separatorChar or null if the path name does not
specify a parent.separatorChar.
path - the name of the path which's parent path name and
member name are to be returned.
this
private static int lastIndexNot(String path,
char separatorChar,
int last)
@Nullable public String getParentPath()
public String getMemberName()
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||