public class JavaSecuredFile extends File
pathSeparator, pathSeparatorChar, separator, separatorChar| Constructor and Description |
|---|
JavaSecuredFile(File parent,
String child) |
JavaSecuredFile(String pathname) |
JavaSecuredFile(String parent,
String child) |
JavaSecuredFile(URI uri) |
| Modifier and Type | Method and 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() |
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, toURLpublic JavaSecuredFile(String pathname)
public JavaSecuredFile(URI uri)
public File getParentFile()
getParentFile in class Filepublic File getAbsoluteFile()
getAbsoluteFile in class Filepublic File getCanonicalFile() throws IOException
getCanonicalFile in class FileIOExceptionpublic boolean isDirectory()
isDirectory in class Filepublic boolean setLastModified(long time)
setLastModified in class Filepublic boolean setReadOnly()
setReadOnly in class Filepublic String getCanonicalPath() throws IOException
getCanonicalPath in class FileIOExceptionpublic boolean createNewFile()
throws IOException
createNewFile in class FileIOExceptionpublic String[] list(FilenameFilter filter)
public File[] listFiles(FileFilter filter)
public long lastModified()
lastModified in class FileCopyright © 2017. All Rights Reserved.