public class Path extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Path |
EMPTY |
static Path |
ROOT |
static char |
SEP |
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) |
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() |
public static final char SEP
public static final Path EMPTY
public static final Path ROOT
public Path(String path)
public Path(String path, int flags)
public Path(String[] segments, int flags)
public Path(Path path)
public boolean isAbsolute()
public boolean isRelative()
public boolean isRoot()
public boolean isEmpty()
public boolean hasTrailingSeparator()
public int segmentCount()
public String[] segments()
public String segment(int index)
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 up()
public Path getParent()
public String getName()
Copyright © 2015 Nuxeo SA. All rights reserved.