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
exists()
getName()
getPath()
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
toURI()
toURL()
-
Field Details
-
pathSeparator
-
pathSeparatorChar
public static final char pathSeparatorChar -
separator
-
separatorChar
public static final char separatorChar
-
-
Constructor Details
-
File
-
File
-
File
-
File
-
-
Method Details
-
canRead
public boolean canRead() -
canWrite
public boolean canWrite() -
compareTo
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
createNewFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
delete
public boolean delete() -
deleteOnExit
public void deleteOnExit() -
exists
public boolean exists() -
getAbsoluteFile
-
getAbsolutePath
-
getCanonicalFile
- Throws:
IOException
-
getCanonicalPath
- Throws:
IOException
-
getName
-
getParent
-
getParentFile
-
getPath
-
isAbsolute
public boolean isAbsolute() -
isDirectory
public boolean isDirectory() -
isFile
public boolean isFile() -
isHidden
public boolean isHidden() -
lastModified
public long lastModified() -
length
public long length() -
list
-
list
-
listFiles
-
listFiles
-
listFiles
-
listRoots
-
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
renameTo
-
setLastModified
public boolean setLastModified(long var0) -
setReadOnly
public boolean setReadOnly() -
toURI
-
toURL
- Throws:
MalformedURLException
-