class TempFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.io.File |
file |
private WritableSharedFile |
sf |
Constructor and Description |
---|
TempFile(java.io.File dir)
Create a temp file in the specified directory (if not null).
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close and remove this temp file.
|
protected void |
finalize() |
AppendStream |
getAppendStream()
Return a stream for appending to the temp file.
|
private java.io.File file
private WritableSharedFile sf
public TempFile(java.io.File dir) throws java.io.IOException
java.io.IOException
public AppendStream getAppendStream() throws java.io.IOException
java.io.IOException
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable