gnu.text

Class FilePath

public class FilePath extends Path implements Comparable

A wrapper around a {@code java.io.File} that extends {@code Path}.
Method Summary
static FilePathcoerceToFilePathOrNull(Object path)
intcompareTo(FilePath path)
intcompareTo(Object obj)
booleanequals(Object obj)
booleanexists()
PathgetCanonical()
longgetContentLength()
StringgetLast()
longgetLastModified()
PathgetParent()
StringgetPath()
StringgetScheme()
inthashCode()
booleanisAbsolute()
booleanisDirectory()
static FilePathmakeFilePath(Object arg)
InputStreamopenInputStream()
OutputStreamopenOutputStream()
Pathresolve(String relative)
FiletoFile()
StringtoString()
URItoURI()
URLtoURL()
static FilePathvalueOf(String str)
static FilePathvalueOf(File file)

Method Detail

coerceToFilePathOrNull

public static FilePath coerceToFilePathOrNull(Object path)

compareTo

public int compareTo(FilePath path)

compareTo

public int compareTo(Object obj)

equals

public boolean equals(Object obj)

exists

public boolean exists()

getCanonical

public Path getCanonical()

getContentLength

public long getContentLength()

getLast

public String getLast()

getLastModified

public long getLastModified()

getParent

public Path getParent()

getPath

public String getPath()

getScheme

public String getScheme()

hashCode

public int hashCode()

isAbsolute

public boolean isAbsolute()

isDirectory

public boolean isDirectory()

makeFilePath

public static FilePath makeFilePath(Object arg)

openInputStream

public InputStream openInputStream()

openOutputStream

public OutputStream openOutputStream()

resolve

public Path resolve(String relative)

toFile

public File toFile()

toString

public String toString()

toURI

public URI toURI()

toURL

public URL toURL()

valueOf

public static FilePath valueOf(String str)

valueOf

public static FilePath valueOf(File file)