Package org.teavm.classlib.java.io
Class TFile
java.lang.Object
org.teavm.classlib.java.io.TFile
- All Implemented Interfaces:
Serializable,Comparable<TFile>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleancanWrite()intbooleanstatic TFilecreateTempFile(String prefix, String suffix) static TFilecreateTempFile(String prefix, String suffix, TFile directory) booleandelete()voidbooleanbooleanexists()getName()getPath()inthashCode()booleanbooleanbooleanisFile()booleanisHidden()longlonglength()String[]list()String[]list(TFilenameFilter filter) TFile[]TFile[]listFiles(TFileFilter filter) TFile[]listFiles(TFilenameFilter filter) static TFile[]booleanmkdir()booleanmkdirs()booleanbooleansetLastModified(long time) booleanbooleansetWritable(boolean writable) toString()toURI()
-
Field Details
-
separatorChar
public static final char separatorChar -
separator
-
pathSeparatorChar
public static final char pathSeparatorChar -
pathSeparator
-
-
Constructor Details
-
TFile
-
TFile
-
TFile
-
TFile
-
-
Method Details
-
canRead
public boolean canRead() -
canWrite
public boolean canWrite() -
compareTo
- Specified by:
compareToin interfaceComparable<TFile>
-
getPath
-
getName
-
getAbsolutePath
-
getAbsoluteFile
-
isAbsolute
public boolean isAbsolute() -
isDirectory
public boolean isDirectory() -
isHidden
public boolean isHidden() -
isFile
public boolean isFile() -
getCanonicalPath
- Throws:
IOException
-
getCanonicalFile
- Throws:
IOException
-
getParent
-
getParentFile
-
listRoots
-
list
-
list
-
listFiles
-
listFiles
-
listFiles
-
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
- Throws:
IOException
-
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
delete
public boolean delete() -
deleteOnExit
public void deleteOnExit() -
renameTo
-
toURI
-
createTempFile
- Throws:
IOException
-
createTempFile
public static TFile createTempFile(String prefix, String suffix, TFile directory) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-