public class SecureFile extends SecureDirectory
isNotWindows
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
SecureFile(File parent,
String child) |
SecureFile(String pathname) |
SecureFile(String parent,
String child) |
Modifier and Type | Method and 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
|
mkdir, mkdirs
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
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