gnu.text
public abstract class Path extends Object
Field Summary | |
---|---|
static Path | defaultPath |
static FilePath | userDirPath This is equivalent to the System {@code "user.dir} property.
|
Constructor Summary | |
---|---|
protected | Path() |
Method Summary | |
---|---|
static Path | coerceToPathOrNull(Object path) |
static Path | currentPath() |
boolean | exists() |
Path | getAbsolute() |
String | getAuthority() |
Path | getCanonical() |
long | getContentLength() |
Path | getDirectory() |
String | getExtension() |
String | getFragment() |
String | getHost() |
String | getLast() |
abstract long | getLastModified() |
Path | getParent() |
abstract String | getPath() |
int | getPort() |
String | getQuery() |
abstract String | getScheme() |
String | getUserInfo() |
abstract boolean | isAbsolute() |
boolean | isDirectory() Does this path name a directory?
|
static InputStream | openInputStream(Object uri) |
abstract InputStream | openInputStream() |
abstract OutputStream | openOutputStream() |
static String | relativize(String in, String base) Convert an absolute URI to one relatve to a given base.
|
Path | resolve(Path relative) |
abstract Path | resolve(String relative) |
static void | setCurrentPath(Path path) |
abstract URI | toURI() |
String | toURIString() |
static URL | toURL(String str) |
abstract URL | toURL() |
static int | uriSchemeLength(String uri) Helper routine to get the scheme part of a URI.
|
static boolean | uriSchemeSpecified(String name) Tests if a URL has a scheme.
|
static Path | valueOf(Object arg) |
Returns: The length of the scheme component, not counting the colon, (or alternatively the index of the colon), or -1 if the is no scheme.