Package com.sun.mail.pop3
Class TempFile
- java.lang.Object
-
- com.sun.mail.pop3.TempFile
-
class TempFile extends java.lang.ObjectA temporary file used to cache POP3 messages.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefileprivate WritableSharedFilesf
-
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 voidclose()Close and remove this temp file.protected voidfinalize()AppendStreamgetAppendStream()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:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-