Class DeleteOnCloseFileInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class DeleteOnCloseFileInputStream
    extends FileInputStream
    When inputstream closes, then delete the file http://stackoverflow.com/a/4694155/368581