Package java.io
Class File
- java.lang.Object
-
- java.io.File
-
- All Implemented Interfaces:
Serializable
,Comparable
public class File extends Object implements Serializable, Comparable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
pathSeparator
static char
pathSeparatorChar
static String
separator
static char
separatorChar
-
Method Summary
-
-
-
Method Detail
-
listRoots
public static File[] listRoots()
-
canRead
public boolean canRead()
-
canWrite
public boolean canWrite()
-
compareTo
public int compareTo(Object var0)
- Specified by:
compareTo
in interfaceComparable
-
compareTo
public int compareTo(File var0)
-
delete
public boolean delete()
-
deleteOnExit
public void deleteOnExit()
-
exists
public boolean exists()
-
getAbsolutePath
public String getAbsolutePath()
-
getAbsoluteFile
public File getAbsoluteFile()
-
getCanonicalPath
public String getCanonicalPath() throws IOException
- Throws:
IOException
-
getCanonicalFile
public File getCanonicalFile() throws IOException
- Throws:
IOException
-
getName
public String getName()
-
getParent
public String getParent()
-
getParentFile
public File getParentFile()
-
getPath
public String getPath()
-
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
public String[] list()
-
listFiles
public File[] listFiles()
-
listFiles
public File[] listFiles(FilenameFilter var0)
-
listFiles
public File[] listFiles(FileFilter var0)
-
list
public String[] list(FilenameFilter var0)
-
mkdir
public boolean mkdir()
-
mkdirs
public boolean mkdirs()
-
createNewFile
public boolean createNewFile() throws IOException
- Throws:
IOException
-
createTempFile
public static File createTempFile(String var0, String var1) throws IOException
- Throws:
IOException
-
createTempFile
public static File createTempFile(String var0, String var1, File var2) throws IOException
- Throws:
IOException
-
renameTo
public boolean renameTo(File var0)
-
toURL
public URL toURL() throws MalformedURLException
- Throws:
MalformedURLException
-
-