Class TFile

java.lang.Object
org.teavm.classlib.java.io.TFile
All Implemented Interfaces:
Serializable, Comparable<TFile>

public class TFile extends Object implements Serializable, Comparable<TFile>
See Also:
Serialized Form
  • Field Details

    • separatorChar

      public static final char separatorChar
    • separator

      public static final String separator
    • pathSeparatorChar

      public static final char pathSeparatorChar
    • pathSeparator

      public static final String pathSeparator
  • Constructor Details

    • TFile

      public TFile(TFile dir, String name)
    • TFile

      public TFile(String path)
    • TFile

      public TFile(String dir, String name)
    • TFile

      public TFile(URI uri)
  • Method Details

    • canRead

      public boolean canRead()
    • canWrite

      public boolean canWrite()
    • compareTo

      public int compareTo(TFile o)
      Specified by:
      compareTo in interface Comparable<TFile>
    • getPath

      public String getPath()
    • getName

      public String getName()
    • getAbsolutePath

      public String getAbsolutePath()
    • getAbsoluteFile

      public TFile getAbsoluteFile()
    • isAbsolute

      public boolean isAbsolute()
    • isDirectory

      public boolean isDirectory()
    • isHidden

      public boolean isHidden()
    • isFile

      public boolean isFile()
    • getCanonicalPath

      public String getCanonicalPath() throws IOException
      Throws:
      IOException
    • getCanonicalFile

      public TFile getCanonicalFile() throws IOException
      Throws:
      IOException
    • getParent

      public String getParent()
    • getParentFile

      public TFile getParentFile()
    • listRoots

      public static TFile[] listRoots()
    • list

      public String[] list()
    • list

      public String[] list(TFilenameFilter filter)
    • listFiles

      public TFile[] listFiles()
    • listFiles

      public TFile[] listFiles(TFileFilter filter)
    • listFiles

      public TFile[] listFiles(TFilenameFilter filter)
    • exists

      public boolean exists()
    • lastModified

      public long lastModified()
    • setLastModified

      public boolean setLastModified(long time)
    • setReadOnly

      public boolean setReadOnly()
    • setWritable

      public boolean setWritable(boolean writable)
    • length

      public long length()
    • createNewFile

      public boolean createNewFile() throws IOException
      Throws:
      IOException
    • mkdir

      public boolean mkdir()
    • mkdirs

      public boolean mkdirs()
    • delete

      public boolean delete()
    • deleteOnExit

      public void deleteOnExit()
    • renameTo

      public boolean renameTo(TFile dest)
    • toURI

      public URI toURI()
    • createTempFile

      public static TFile createTempFile(String prefix, String suffix) throws IOException
      Throws:
      IOException
    • createTempFile

      public static TFile createTempFile(String prefix, String suffix, TFile directory) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object