Closeable, Flushable, AutoCloseablepublic class SecureFileOutputStream extends FileOutputStream
| Constructor | Description |
|---|---|
SecureFileOutputStream(File file) |
Sets output file to mode 600
|
SecureFileOutputStream(File file,
boolean append) |
Sets output file to mode 600 only if append = false
(otherwise it is presumed to be 600 already)
|
SecureFileOutputStream(String file) |
Sets output file to mode 600
|
SecureFileOutputStream(String file,
boolean append) |
Sets output file to mode 600 whether append = true or false
|
| Modifier and Type | Method | Description |
|---|---|---|
(package private) static boolean |
canSetPerms() |
|
static void |
setPerms(File f) |
Tries to set the permissions to 600,
ignores errors
|
close, finalize, getChannel, getFD, write, write, writeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushpublic SecureFileOutputStream(String file) throws FileNotFoundException
FileNotFoundExceptionpublic SecureFileOutputStream(String file, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic SecureFileOutputStream(File file) throws FileNotFoundException
FileNotFoundExceptionpublic SecureFileOutputStream(File file, boolean append) throws FileNotFoundException
FileNotFoundExceptionstatic boolean canSetPerms()
public static void setPerms(File f)