public class SecureFile extends SecureDirectory
isNotWindows
コンストラクタ | 説明 |
---|---|
SecureFile(java.io.File parent,
java.lang.String child) |
|
SecureFile(java.lang.String pathname) |
|
SecureFile(java.lang.String parent,
java.lang.String child) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
createNewFile() |
Sets file to mode 600 if the file is created
|
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix) |
Sets file to mode 600 when the file is created
|
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix,
java.io.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
mkdir, mkdirs
public SecureFile(java.lang.String pathname)
public SecureFile(java.lang.String parent, java.lang.String child)
public SecureFile(java.io.File parent, java.lang.String child)
public boolean createNewFile() throws java.io.IOException
createNewFile
クラス内 java.io.File
java.io.IOException
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
java.io.IOException
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix, java.io.File directory) throws java.io.IOException
java.io.IOException
protected void setPerms()
setPerms
クラス内 SecureDirectory