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:
- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
boolean
canWrite()
int
boolean
static TFile
createTempFile(String prefix, String suffix)
static TFile
createTempFile(String prefix, String suffix, TFile directory)
boolean
delete()
void
boolean
boolean
exists()
getName()
getPath()
int
hashCode()
boolean
boolean
boolean
isFile()
boolean
isHidden()
long
long
length()
String[]
list()
String[]
list(TFilenameFilter filter)
TFile[]
TFile[]
listFiles(TFileFilter filter)
TFile[]
listFiles(TFilenameFilter filter)
static TFile[]
boolean
mkdir()
boolean
mkdirs()
boolean
boolean
setLastModified(long time)
boolean
boolean
setWritable(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:
compareTo
in 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
-