Package jnr.posix
Class JavaSecuredFile
java.lang.Object
java.io.File
jnr.posix.JavaSecuredFile
- All Implemented Interfaces:
Serializable
,Comparable<File>
- See Also:
-
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorsConstructorDescriptionJavaSecuredFile
(File parent, String child) JavaSecuredFile
(String pathname) JavaSecuredFile
(String parent, String child) JavaSecuredFile
(URI uri) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRead()
boolean
canWrite()
boolean
boolean
delete()
boolean
exists()
boolean
boolean
isFile()
boolean
isHidden()
long
long
length()
String[]
list()
String[]
list
(FilenameFilter filter) File[]
File[]
listFiles
(FileFilter filter) boolean
mkdir()
boolean
mkdirs()
boolean
boolean
setLastModified
(long time) boolean
Methods inherited from class java.io.File
canExecute, compareTo, createTempFile, createTempFile, deleteOnExit, equals, getAbsolutePath, getFreeSpace, getName, getParent, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, listFiles, listRoots, setExecutable, setExecutable, setReadable, setReadable, setWritable, setWritable, toPath, toString, toURI, toURL
-
Constructor Details
-
JavaSecuredFile
-
JavaSecuredFile
-
JavaSecuredFile
-
JavaSecuredFile
-
-
Method Details
-
getParentFile
- Overrides:
getParentFile
in classFile
-
getAbsoluteFile
- Overrides:
getAbsoluteFile
in classFile
-
getCanonicalFile
- Overrides:
getCanonicalFile
in classFile
- Throws:
IOException
-
canRead
public boolean canRead() -
canWrite
public boolean canWrite() -
exists
public boolean exists() -
isDirectory
public boolean isDirectory()- Overrides:
isDirectory
in classFile
-
isFile
public boolean isFile() -
isHidden
public boolean isHidden() -
delete
public boolean delete() -
mkdir
public boolean mkdir() -
mkdirs
public boolean mkdirs() -
renameTo
-
setLastModified
public boolean setLastModified(long time) - Overrides:
setLastModified
in classFile
-
setReadOnly
public boolean setReadOnly()- Overrides:
setReadOnly
in classFile
-
getCanonicalPath
- Overrides:
getCanonicalPath
in classFile
- Throws:
IOException
-
createNewFile
- Overrides:
createNewFile
in classFile
- Throws:
IOException
-
list
-
list
-
listFiles
-
listFiles
-
lastModified
public long lastModified()- Overrides:
lastModified
in classFile
-
length
public long length()
-