- java.lang.Object
-
- java.io.File
-
- jnr.posix.JavaSecuredFile
-
- All Implemented Interfaces:
Serializable
,Comparable<File>
public class JavaSecuredFile extends File
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
-
Constructor Summary
Constructors Constructor Description JavaSecuredFile(File parent, String child)
JavaSecuredFile(String pathname)
JavaSecuredFile(String parent, String child)
JavaSecuredFile(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRead()
boolean
canWrite()
boolean
createNewFile()
boolean
delete()
boolean
exists()
File
getAbsoluteFile()
File
getCanonicalFile()
String
getCanonicalPath()
File
getParentFile()
boolean
isDirectory()
boolean
isFile()
boolean
isHidden()
long
lastModified()
long
length()
String[]
list()
String[]
list(FilenameFilter filter)
File[]
listFiles()
File[]
listFiles(FileFilter filter)
boolean
mkdir()
boolean
mkdirs()
boolean
renameTo(File dest)
boolean
setLastModified(long time)
boolean
setReadOnly()
-
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
-
-
-
-
Method Detail
-
getParentFile
public File getParentFile()
- Overrides:
getParentFile
in classFile
-
getAbsoluteFile
public File getAbsoluteFile()
- Overrides:
getAbsoluteFile
in classFile
-
getCanonicalFile
public File getCanonicalFile() throws IOException
- Overrides:
getCanonicalFile
in classFile
- Throws:
IOException
-
isDirectory
public boolean isDirectory()
- Overrides:
isDirectory
in classFile
-
setLastModified
public boolean setLastModified(long time)
- Overrides:
setLastModified
in classFile
-
setReadOnly
public boolean setReadOnly()
- Overrides:
setReadOnly
in classFile
-
getCanonicalPath
public String getCanonicalPath() throws IOException
- Overrides:
getCanonicalPath
in classFile
- Throws:
IOException
-
createNewFile
public boolean createNewFile() throws IOException
- Overrides:
createNewFile
in classFile
- Throws:
IOException
-
list
public String[] list(FilenameFilter filter)
-
listFiles
public File[] listFiles(FileFilter filter)
-
lastModified
public long lastModified()
- Overrides:
lastModified
in classFile
-
-