public final class Path extends Object
Modifier and Type | Field and Description |
---|---|
static Path |
EMPTY |
static String[] |
EMPTY_SEGMENTS |
static int |
HAS_LEADING_SLASH |
static int |
HAS_TRAILING_SLASH |
static Path |
ROOT |
Constructor and Description |
---|
Path(String[] segments) |
Path(String[] segments,
int bits) |
Modifier and Type | Method and Description |
---|---|
Path |
append(String segment) |
Path |
copy() |
Path |
copy(int bits) |
boolean |
equals(Object obj) |
String |
getFileExtension() |
String |
getFileName() |
int |
hashCode() |
boolean |
hasLeadingSlash() |
boolean |
hasTrailingSlash() |
boolean |
isAbsolute() |
boolean |
isRoot() |
String |
lastSegment() |
int |
length() |
Path |
makeAbsolute() |
Path |
makeRelative() |
static Path |
parse(String path) |
Path |
removeLastSegment() |
Path |
removeLastSegments(int i) |
Path |
removeTrailingSlash() |
String |
segment(int i) |
String[] |
segments() |
String |
toString() |
public static final int HAS_LEADING_SLASH
public static final int HAS_TRAILING_SLASH
public static final String[] EMPTY_SEGMENTS
public static final Path ROOT
public static final Path EMPTY
public Path(String[] segments)
public Path(String[] segments, int bits)
public int length()
public String[] segments()
public boolean hasLeadingSlash()
public boolean hasTrailingSlash()
public boolean isAbsolute()
public Path copy()
public Path copy(int bits)
public String lastSegment()
public String getFileExtension()
public String getFileName()
public Path makeAbsolute()
public Path makeRelative()
public Path removeTrailingSlash()
public boolean isRoot()
public String segment(int i)
public Path removeLastSegment()
public Path removeLastSegments(int i)
Copyright © 2015 Nuxeo SA. All rights reserved.