Closeable
, Flushable
, Appendable
, AutoCloseable
public class TempFileWriter extends PrivateFileWriter
The standard File.createTempFile(java.lang.String, java.lang.String, java.io.File)
method has a number of problems. This is
an attempt to counter some of its problems. - file is made accessible by user
only on write (when supported) - file can be deleted properly after use (it
is always deleted automatically on exit)
logger
Constructor | Description |
---|---|
TempFileWriter(String prefix,
String suffix) |
Create a temporary file
See File.createTempFile() for a description of the arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, close, flush, getEncoding
delete, ensurePermissions, getFile, getOutputStream, getPath, write, write, write, write, write
public TempFileWriter(String prefix, String suffix) throws IOException
prefix
- suffix
- IOException
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.