| java.lang.Object gnu.text.Path
All known Subclasses: gnu.text.FilePath, gnu.text.URIPath,
Path | abstract public class Path (Code) | | A generalized path/location, including File and URIs.
|
Field Summary | |
public static Path | defaultPath | final public static FilePath | userDirPath This is equivalent to the System
"user.dir property.
However, the getProperty is tracked dynamically and resolved
as needed. |
Constructor Summary | |
protected | Path() |
userDirPath | final public static FilePath userDirPath(Code) | | This is equivalent to the System
"user.dir property.
However, the getProperty is tracked dynamically and resolved
as needed.
|
exists | public boolean exists()(Code) | | |
getContentLength | public long getContentLength()(Code) | | |
getLastModified | abstract public long getLastModified()(Code) | | |
getPort | public int getPort()(Code) | | |
isAbsolute | abstract public boolean isAbsolute()(Code) | | |
isDirectory | public boolean isDirectory()(Code) | | Does this path name a directory?
The default implementation returns true only if the path ends
with '/' or the separatorChar.
|
setCurrentPath | public static void setCurrentPath(Path path)(Code) | | |
uriSchemeLength | public static int uriSchemeLength(String uri)(Code) | | Helper routine to get the scheme part of a URI.
The scheme part is "http:" or "file:" or "ftp:" most commonly.
This functions searches for the first ':' that doesn't follow a '/'.
The length of the scheme component, not counting the colon,(or alternatively the index of the colon), or -1 if the is no scheme. |
uriSchemeSpecified | public static boolean uriSchemeSpecified(String name)(Code) | | Tests if a URL has a scheme.
For convenience, we treat a 1-character "scheme" as an
MS-DOS-style "drive letter" - i.e. not a scheme.
|
|
|