public class TFile extends Object implements Serializable, Comparable<TFile>
Modifier and Type | Field and Description |
---|---|
static String |
pathSeparator |
static char |
pathSeparatorChar |
static String |
separator |
static char |
separatorChar |
Constructor and Description |
---|
TFile(String path) |
TFile(String dir,
String name) |
TFile(TFile dir,
String name) |
TFile(URI uri) |
public static final char separatorChar
public static final String separator
public static final char pathSeparatorChar
public static final String pathSeparator
public boolean canRead()
public boolean canWrite()
public int compareTo(TFile o)
compareTo
in interface Comparable<TFile>
public String getPath()
public String getName()
public String getAbsolutePath()
public TFile getAbsoluteFile()
public boolean isAbsolute()
public boolean isDirectory()
public boolean isHidden()
public boolean isFile()
public String getCanonicalPath() throws IOException
IOException
public TFile getCanonicalFile() throws IOException
IOException
public String getParent()
public TFile getParentFile()
public static TFile[] listRoots()
public String[] list()
public String[] list(TFilenameFilter filter)
public TFile[] listFiles()
public TFile[] listFiles(TFileFilter filter)
public TFile[] listFiles(TFilenameFilter filter)
public boolean exists()
public long lastModified()
public boolean setLastModified(long time)
public boolean setReadOnly()
public boolean setWritable(boolean writable)
public long length()
public boolean createNewFile() throws IOException
IOException
public boolean mkdir()
public boolean mkdirs()
public boolean delete()
public void deleteOnExit()
public boolean renameTo(TFile dest)
public URI toURI()
public static TFile createTempFile(String prefix, String suffix) throws IOException
IOException
public static TFile createTempFile(String prefix, String suffix, TFile directory) throws IOException
IOException
Copyright © 2019. All rights reserved.