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, valueOf
public 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 Path
public boolean isDirectory()
Path
isDirectory
in class Path
public boolean delete()
public long getLastModified()
getLastModified
in interface javax.tools.FileObject
getLastModified
in class Path
public long getContentLength()
getContentLength
in class Path
public int compareTo(FilePath path)
compareTo
in interface java.lang.Comparable<FilePath>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.io.File toFile()
public java.net.URI toUri()
public java.io.InputStream openInputStream() throws java.io.IOException
openInputStream
in interface javax.tools.FileObject
openInputStream
in class Path
java.io.IOException
public java.io.OutputStream openOutputStream() throws java.io.IOException
openOutputStream
in interface javax.tools.FileObject
openOutputStream
in class Path
java.io.IOException
public Path getCanonical()
getCanonical
in class Path