org.subethamail.smtp.server.io
Class SharedTmpFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by javax.mail.util.SharedFileInputStream
                  extended by org.subethamail.smtp.server.io.SharedTmpFileInputStream
All Implemented Interfaces:
java.io.Closeable, javax.mail.internet.SharedInputStream

public class SharedTmpFileInputStream
extends javax.mail.util.SharedFileInputStream

This class uses a temporary file to store big messages and asks JVM to delete them when destroyed.

Author:
De Oliveira Edouard <doe_wanted@yahoo.fr>

Field Summary
 
Fields inherited from class javax.mail.util.SharedFileInputStream
bufpos, bufsize, datalen, in, start
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Constructor Summary
SharedTmpFileInputStream(java.io.File f)
           
 
Method Summary
 void close()
           
 
Methods inherited from class javax.mail.util.SharedFileInputStream
available, finalize, getPosition, mark, markSupported, newStream, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedTmpFileInputStream

public SharedTmpFileInputStream(java.io.File f)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class javax.mail.util.SharedFileInputStream
Throws:
java.io.IOException


Copyright © 2011 SubEthaSMTP. All Rights Reserved. Build version: UNVERSIONED