org.mule.model.streaming
Class DeleteOnCloseFileInputStream
java.lang.Object
java.io.InputStream
java.io.FileInputStream
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.
Method Summary |
void |
close()
|
DeleteOnCloseFileInputStream
public DeleteOnCloseFileInputStream(File file)
throws FileNotFoundException
- Builds a
DeleteOnCloseFileInputStream
.
- Parameters:
file
- #see
- Throws:
FileNotFoundException
- If there is a problem regarding the file.
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.