Class FileDeletingInputStream

java.lang.Object
java.io.InputStream
io.milton.common.FileDeletingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class FileDeletingInputStream extends InputStream
An inputstream to read a file, and to delete the file when this stream is closed This is useful for situations where you are using a local file to buffer the contents of remote data, and want to ensure that the temporary local file is deleted when it is no longer being used