Package com.sun.mail.pop3
Class TempFile
- java.lang.Object
-
- com.sun.mail.pop3.TempFile
-
class TempFile extends java.lang.Object
A temporary file used to cache POP3 messages.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file
private WritableSharedFile
sf
-
Constructor Summary
Constructors Constructor Description TempFile(java.io.File dir)
Create a temp file in the specified directory (if not null).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close and remove this temp file.protected void
finalize()
AppendStream
getAppendStream()
Return a stream for appending to the temp file.
-
-
-
Field Detail
-
file
private java.io.File file
-
sf
private WritableSharedFile sf
-
-
Method Detail
-
getAppendStream
public AppendStream getAppendStream() throws java.io.IOException
Return a stream for appending to the temp file.- Throws:
java.io.IOException
-
close
public void close()
Close and remove this temp file.
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-