public final class Path extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
bits |
static Path |
EMPTY |
static String[] |
EMPTY_SEGMENTS |
static int |
HAS_LEADING_SLASH |
static int |
HAS_TRAILING_SLASH |
static Path |
ROOT |
protected String[] |
segments |
Modifier | Constructor and Description |
---|---|
|
Path(String[] segments) |
|
Path(String[] segments,
int bits) |
protected |
Path(String[] segments,
int bits,
boolean updateHashCode) |
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
protected int bits
public int length()
public boolean hasLeadingSlash()
public boolean hasTrailingSlash()
public boolean isAbsolute()
public String lastSegment()
public String getFileExtension()
public String getFileName()
public Path makeAbsolute()
public Path makeRelative()
public Path removeTrailingSlash()
public boolean isRoot()
public Path removeLastSegment()
public Path removeLastSegments(int i)
Copyright © 2015 Nuxeo SA. All rights reserved.