org.mule.model.streaming
Class DeleteOnCloseFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.mule.model.streaming.DeleteOnCloseFileInputStream
All Implemented Interfaces:
Closeable

public class DeleteOnCloseFileInputStream
extends FileInputStream

FileInputStream which deletes the underlying file when the stream is closed.


Constructor Summary
DeleteOnCloseFileInputStream(File file)
          Builds a DeleteOnCloseFileInputStream.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FileInputStream
available, finalize, getChannel, getFD, read, read, read, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteOnCloseFileInputStream

public DeleteOnCloseFileInputStream(File file)
                             throws FileNotFoundException
Builds a DeleteOnCloseFileInputStream.

Parameters:
file - #see
Throws:
FileNotFoundException - If there is a problem regarding the file.
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FileInputStream
Throws:
IOException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.