Class TempFile


  • class TempFile
    extends java.lang.Object
    A temporary file used to cache POP3 messages.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TempFile

        public TempFile​(java.io.File dir)
                 throws java.io.IOException
        Create a temp file in the specified directory (if not null). The file will be deleted when the JVM exits.
        Throws:
        java.io.IOException
    • 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 class java.lang.Object
        Throws:
        java.lang.Throwable