public class PathSplitter extends Object
Constructor and Description |
---|
PathSplitter(String source)
Splits with the '/' character (NOT the system-specific file separator) and trims extensions.
|
PathSplitter(String source,
boolean trimExtension)
Splits with the '/' character (NOT the system-specific file separator).
|
PathSplitter(String source,
char separator,
boolean trimExtension) |
Modifier and Type | Method and Description |
---|---|
int |
count()
Returns the number of path elements in the source string.
|
String |
next()
Returns the next path element from the internal iterator.
|
String |
remaining()
Returns all the elements lefts after the last call to at() or next(),
*without* a leading separator.
|
String |
skipTo(int index)
Returns the element at the given 0-based index.
|
public PathSplitter(String source)
public PathSplitter(String source, boolean trimExtension)
public PathSplitter(String source, char separator, boolean trimExtension)
public int count()
public String next()
public String skipTo(int index)
public String remaining()
Copyright © 2016 Magnolia International Ltd.. All rights reserved.