de.schlichtherle.truezip.io
Class Paths.Splitter
java.lang.Object
de.schlichtherle.truezip.io.Paths.Splitter
- Direct Known Subclasses:
- FsArchiveFileSystem.Splitter
- Enclosing class:
- Paths
public static class Paths.Splitter
- extends Object
A splitter for path names.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
separatorChar
private final char separatorChar
parentPath
@CheckForNull
private String parentPath
memberName
private String memberName
Paths.Splitter
public Paths.Splitter(char separatorChar)
split
public Paths.Splitter split(String path)
- Splits a path name into its parent path name and its base name,
recognizing platform specific file system roots.
The returned array will hold the following strings:
- At index zero: The parent path name or
null if the
path name does not specify a parent.
This compares equal with File.getParent().
- At index one: The base name.
This compares equal with
File.getName().
- Parameters:
path - The name of the path which's parent path name and base
name are to be returned.
- Returns:
this
getParentPath
@CheckForNull
public String getParentPath()
getMemberName
public String getMemberName()
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.