public class Path extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static int |
ALL_SEPARATORS |
static Path |
EMPTY |
protected int |
flags |
protected static int |
HAS_LEADING |
protected static int |
HAS_TRAILING |
protected static int |
HASH_MASK |
protected static String[] |
NO_SEGMENTS |
static Path |
ROOT |
protected String[] |
segments |
static char |
SEP |
protected static int |
USED_BITS |
Constructor and Description |
---|
Path(Path path) |
Path(String path) |
Path(String[] segments,
int flags) |
Path(String path,
int flags) |
Modifier and Type | Method and Description |
---|---|
Path |
addTrailingSeparator() |
Path |
append(Path tail) |
Path |
append(String tail) |
Path |
appendSegment(String segment) |
protected int |
computeHashCode() |
boolean |
equals(Object obj) |
String |
getFileExtension() |
String |
getFileName() |
String[] |
getFileParts() |
String |
getName() |
Path |
getParent() |
int |
hashCode() |
boolean |
hasTrailingSeparator() |
boolean |
isAbsolute() |
boolean |
isEmpty() |
boolean |
isRelative() |
boolean |
isRoot() |
String |
lastSegment() |
Path |
makeAbsolute() |
Path |
makeRelative() |
Path |
removeFileExtension() |
Path |
removeFirstSegments(int count) |
Path |
removeLastSegments(int count) |
Path |
removeTrailingSeparator() |
String |
segment(int index) |
int |
segmentCount() |
String[] |
segments() |
String |
toString() |
Path |
up() |
protected void |
updateHashCode() |
public static final char SEP
protected static final int HAS_LEADING
protected static final int HAS_TRAILING
protected static final int HASH_MASK
protected static final int ALL_SEPARATORS
protected static final int USED_BITS
protected static final String[] NO_SEGMENTS
protected int flags
protected final void updateHashCode()
protected int computeHashCode()
public boolean isAbsolute()
public boolean isRelative()
public boolean isRoot()
public boolean isEmpty()
public boolean hasTrailingSeparator()
public int segmentCount()
public String lastSegment()
public String getFileExtension()
public String getFileName()
public String[] getFileParts()
public Path makeAbsolute()
public Path makeRelative()
public Path removeTrailingSeparator()
public Path addTrailingSeparator()
public Path removeLastSegments(int count)
public Path removeFirstSegments(int count)
public Path removeFileExtension()
public Path appendSegment(String segment)
Copyright © 2015 Nuxeo SA. All rights reserved.