Package alt.java.io
Interface File
public interface File
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead()booleancanWrite()intintbooleancreateTempFile(String prefix, String suffix) createTempFile(String prefix, String suffix, File directory) booleandelete()voidbooleanexists()getName()getPath()booleanbooleanbooleanisFile()booleanisHidden()longlonglength()String[]list()String[]list(FilenameFilter filter) File[]File[]listFiles(FileFilter filter) File[]listFiles(FilenameFilter filter) File[]booleanmkdir()booleanmkdirs()booleanbooleansetLastModified(long time) booleantoURL()
-
Method Details
-
getName
String getName() -
getParent
String getParent() -
getParentFile
File getParentFile() -
getPath
String getPath() -
isAbsolute
boolean isAbsolute() -
getAbsolutePath
String getAbsolutePath() -
getAbsoluteFile
File getAbsoluteFile() -
getCanonicalPath
- Throws:
IOException
-
getCanonicalFile
- Throws:
IOException
-
toURL
- Throws:
MalformedURLException
-
canRead
boolean canRead() -
canWrite
boolean canWrite() -
exists
boolean exists() -
isDirectory
boolean isDirectory() -
isFile
boolean isFile() -
isHidden
boolean isHidden() -
lastModified
long lastModified() -
length
long length() -
createNewFile
- Throws:
IOException
-
delete
boolean delete() -
deleteOnExit
void deleteOnExit() -
list
String[] list() -
list
-
listFiles
File[] listFiles() -
listFiles
-
listFiles
-
mkdir
boolean mkdir() -
mkdirs
boolean mkdirs() -
renameTo
-
setLastModified
boolean setLastModified(long time) -
setReadOnly
boolean setReadOnly() -
compareTo
-
compareTo
-
getRealFile
File getRealFile() -
createTempFile
- Throws:
IOException
-
createTempFile
- Throws:
IOException
-
listRoots
File[] listRoots()
-