- 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 booleancanRead()booleancanWrite()booleancreateNewFile()booleandelete()booleanexists()FilegetAbsoluteFile()FilegetCanonicalFile()StringgetCanonicalPath()FilegetParentFile()booleanisDirectory()booleanisFile()booleanisHidden()longlastModified()longlength()String[]list()String[]list(FilenameFilter filter)File[]listFiles()File[]listFiles(FileFilter filter)booleanmkdir()booleanmkdirs()booleanrenameTo(File dest)booleansetLastModified(long time)booleansetReadOnly()-
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:
getParentFilein classFile
-
getAbsoluteFile
public File getAbsoluteFile()
- Overrides:
getAbsoluteFilein classFile
-
getCanonicalFile
public File getCanonicalFile() throws IOException
- Overrides:
getCanonicalFilein classFile- Throws:
IOException
-
isDirectory
public boolean isDirectory()
- Overrides:
isDirectoryin classFile
-
setLastModified
public boolean setLastModified(long time)
- Overrides:
setLastModifiedin classFile
-
setReadOnly
public boolean setReadOnly()
- Overrides:
setReadOnlyin classFile
-
getCanonicalPath
public String getCanonicalPath() throws IOException
- Overrides:
getCanonicalPathin classFile- Throws:
IOException
-
createNewFile
public boolean createNewFile() throws IOException- Overrides:
createNewFilein classFile- Throws:
IOException
-
list
public String[] list(FilenameFilter filter)
-
listFiles
public File[] listFiles(FileFilter filter)
-
lastModified
public long lastModified()
- Overrides:
lastModifiedin classFile
-
-