@NotThreadSafe public static class Paths.Splitter extends Object
Constructor and Description |
---|
Splitter(char separatorChar,
boolean keepTrailingSeparator)
Constructs a new splitter.
|
Modifier and Type | Method and Description |
---|---|
String |
getMemberName()
Returns the member name.
|
String |
getParentPath()
Returns the parent path name.
|
Paths.Splitter |
split(String path)
Splits the given path name into its parent path name and member name,
recognizing platform specific file system roots.
|
public 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.public String getMemberName()
public Paths.Splitter split(String path)
path
- the path name which's parent path name and member name
are to be returned.this
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.