Class File
java.lang.Object
java.io.File
- All Implemented Interfaces:
Serializable, Comparable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleancanWrite()intintbooleanstatic FilecreateTempFile(String var0, String var1) static FilecreateTempFile(String var0, String var1, File var2) booleandelete()voidbooleanbooleanexists()getName()getPath()inthashCode()booleanbooleanbooleanisFile()booleanisHidden()longlonglength()String[]list()String[]list(FilenameFilter var0) File[]File[]listFiles(FileFilter var0) File[]listFiles(FilenameFilter var0) static File[]booleanmkdir()booleanmkdirs()booleanbooleansetLastModified(long var0) booleantoString()toURL()
-
Field Details
-
separatorChar
public static final char separatorChar -
separator
-
pathSeparatorChar
public static final char pathSeparatorChar -
pathSeparator
-
-
Constructor Details
-
File
-
File
-
File
-
-
Method Details
-
listRoots
-
canRead
public boolean canRead() -
canWrite
public boolean canWrite() -
compareTo
- Specified by:
compareToin interfaceComparable
-
compareTo
-
delete
public boolean delete() -
deleteOnExit
public void deleteOnExit() -
equals
-
exists
public boolean exists() -
getAbsolutePath
-
getAbsoluteFile
-
getCanonicalPath
- Throws:
IOException
-
getCanonicalFile
- Throws:
IOException
-
getName
-
getParent
-
getParentFile
-
getPath
-
hashCode
-
isAbsolute
public boolean isAbsolute() -
isDirectory
public boolean isDirectory() -
isFile
public boolean isFile() -
isHidden
public boolean isHidden() -
lastModified
public long lastModified() -
setLastModified
public boolean setLastModified(long var0) -
setReadOnly
public boolean setReadOnly() -
length
public long length() -
list
-
listFiles
-
listFiles
-
listFiles
-
list
-
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
createNewFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
renameTo
-
toString
-
toURL
- Throws:
MalformedURLException
-