com.xebialabs.deployit.core.rest.resteasy
Class TemporaryFiles.TempFileStorage

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.resteasy.TemporaryFiles.TempFileStorage
All Implemented Interfaces:
org.apache.james.mime4j.storage.Storage
Enclosing class:
TemporaryFiles

public static final class TemporaryFiles.TempFileStorage
extends java.lang.Object
implements org.apache.james.mime4j.storage.Storage

Adaption of the standard TempFileStorage found in Mime4j's TemporaryFileStorageProvider. It keeps a reference to all the streams that have been opened on the file, so that they can be closed before deleting the file.


Constructor Summary
TemporaryFiles.TempFileStorage(java.io.File file)
           
 
Method Summary
 void delete()
           
 java.io.InputStream getInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryFiles.TempFileStorage

public TemporaryFiles.TempFileStorage(java.io.File file)
Method Detail

delete

public void delete()
Specified by:
delete in interface org.apache.james.mime4j.storage.Storage

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface org.apache.james.mime4j.storage.Storage
Throws:
java.io.IOException