Package alt.java.io
Interface File
public interface File
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
boolean
canWrite()
int
int
boolean
createTempFile
(String prefix, String suffix) createTempFile
(String prefix, String suffix, File directory) boolean
delete()
void
boolean
exists()
getName()
getPath()
boolean
boolean
boolean
isFile()
boolean
isHidden()
long
long
length()
String[]
list()
String[]
list
(FilenameFilter filter) File[]
File[]
listFiles
(FileFilter filter) File[]
listFiles
(FilenameFilter filter) File[]
boolean
mkdir()
boolean
mkdirs()
boolean
boolean
setLastModified
(long time) boolean
toURL()
-
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()
-