Package java.io
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 TypeMethodDescriptionboolean
canRead()
boolean
canWrite()
int
int
boolean
static File
createTempFile
(String var0, String var1) static File
createTempFile
(String var0, String var1, File var2) boolean
delete()
void
boolean
boolean
exists()
getName()
getPath()
int
hashCode()
boolean
boolean
boolean
isFile()
boolean
isHidden()
long
long
length()
String[]
list()
String[]
list
(FilenameFilter var0) File[]
File[]
listFiles
(FileFilter var0) File[]
listFiles
(FilenameFilter var0) static File[]
boolean
mkdir()
boolean
mkdirs()
boolean
boolean
setLastModified
(long var0) boolean
toString()
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:
compareTo
in 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
public int 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
-