defaultPath, userDirPath| Modifier and Type | Method and Description |
|---|---|
static FilePath |
coerceToFilePathOrNull(java.lang.Object path) |
int |
compareTo(FilePath path) |
boolean |
delete() |
boolean |
equals(java.lang.Object obj) |
boolean |
exists() |
Path |
getCanonical() |
long |
getContentLength() |
java.lang.String |
getLast() |
long |
getLastModified() |
FilePath |
getParent() |
java.lang.String |
getPath() |
java.lang.String |
getScheme() |
int |
hashCode() |
boolean |
isAbsolute() |
boolean |
isDirectory()
Does this path name a directory?
The default implementation returns true only if the path ends
with '/' or the separatorChar.
|
static FilePath |
makeFilePath(java.lang.Object arg) |
java.io.InputStream |
openInputStream() |
java.io.OutputStream |
openOutputStream() |
Path |
resolve(java.lang.String relative) |
java.io.File |
toFile() |
java.lang.String |
toString() |
java.net.URI |
toUri() |
java.net.URL |
toURL() |
static FilePath |
valueOf(java.io.File file) |
static FilePath |
valueOf(java.lang.String str) |
coerceToPathOrNull, currentPath, getAbsolute, getAuthority, getCharContent, getDirectory, getExtension, getFragment, getHost, getName, getPort, getQuery, getUserInfo, openInputStream, openReader, openWriter, relativize, resolve, setCurrentPath, toURI, toURIString, toURL, uriSchemeLength, uriSchemeSpecified, valueOfpublic static FilePath valueOf(java.lang.String str)
public static FilePath valueOf(java.io.File file)
public static FilePath coerceToFilePathOrNull(java.lang.Object path)
public static FilePath makeFilePath(java.lang.Object arg)
public boolean isAbsolute()
isAbsolute in class Pathpublic boolean isDirectory()
PathisDirectory in class Pathpublic boolean delete()
public long getLastModified()
getLastModified in interface javax.tools.FileObjectgetLastModified in class Pathpublic long getContentLength()
getContentLength in class Pathpublic int compareTo(FilePath path)
compareTo in interface java.lang.Comparable<FilePath>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File toFile()
public java.net.URI toUri()
public java.io.InputStream openInputStream()
throws java.io.IOException
openInputStream in interface javax.tools.FileObjectopenInputStream in class Pathjava.io.IOExceptionpublic java.io.OutputStream openOutputStream()
throws java.io.IOException
openOutputStream in interface javax.tools.FileObjectopenOutputStream in class Pathjava.io.IOExceptionpublic Path getCanonical()
getCanonical in class Path