Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class TempFile extends Object
delete() is explicitely
called.for a way to confine instance lifetime to a narrower scope than automatic garbage collection| Constructor and Description |
|---|
TempFile(String prefix) |
TempFile(String prefix,
String suffix) |
TempFile(String prefix,
String suffix,
File directory)
Creates the temp directory if missing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the underlying temp file immediately.
|
protected void |
finalize() |
File |
getFile()
Gets the temp file.
|
String |
toString() |
public TempFile(String prefix) throws IOException
IOExceptionpublic TempFile(String prefix, String suffix) throws IOException
IOExceptionpublic TempFile(String prefix, String suffix, File directory) throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionprotected void finalize()
throws Throwable
public File getFile() throws IllegalStateException
IllegalStateException - if already deletedCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.