title: is there an existing FileInputStream delete on close?
body: <p>Is there an existing way to have a <code>FileInputStream</code> delete the underlying file automatically when closed?  </p>
  
  <p>I was planning to make my own utility class to extend <code>FileInputStream</code>and do it myself, but I'm kinda surprised that there isn't something already existing.  </p>
  
  <p><strong>edit:</strong> Use case is that I have a Struts 2 action that returns an <code>InputStream</code> for file download from a page.  As far as I can tell, I don't get notified when the action is finished, or the <code>FileInputStream</code> is not in use anymore, and I don't want the (potentially large) temporary files that are generated to be downloaded left lying around.</p>
  
  <p>The question wasn't Struts 2 specific, so I didn't include that info originally and complicate the question.</p>