Serializable, Comparable<File>public class SecureFile extends SecureDirectory
pathSeparator, pathSeparatorChar, separator, separatorCharisNotWindows| Constructor | Description |
|---|---|
SecureFile(File parent,
String child) |
|
SecureFile(String pathname) |
|
SecureFile(String parent,
String child) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
createNewFile() |
Sets file to mode 600 if the file is created
|
static File |
createTempFile(String prefix,
String suffix) |
Sets file to mode 600 when the file is created
|
static File |
createTempFile(String prefix,
String suffix,
File directory) |
Sets file to mode 600 when the file is created
|
protected void |
setPerms() |
Tries to set the permissions to 600,
ignores errors
|
canExecute, canRead, canWrite, compareTo, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURLclone, finalize, getClass, notify, notifyAll, wait, wait, waitmkdir, mkdirspublic SecureFile(String pathname)
public boolean createNewFile()
throws IOException
createNewFile in class FileIOExceptionpublic static File createTempFile(String prefix, String suffix) throws IOException
IOExceptionpublic static File createTempFile(String prefix, String suffix, File directory) throws IOException
IOExceptionprotected void setPerms()
setPerms in class SecureDirectory