Serializable
, Comparable<File>
public class SecureFile extends SecureDirectory
pathSeparator, pathSeparatorChar, separator, separatorChar
isNotWindows
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, toURL
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
mkdir, mkdirs
public SecureFile(String pathname)
public boolean createNewFile() throws IOException
createNewFile
in class File
IOException
public static File createTempFile(String prefix, String suffix) throws IOException
IOException
public static File createTempFile(String prefix, String suffix, File directory) throws IOException
IOException
protected void setPerms()
setPerms
in class SecureDirectory