title: How to convert InputStream to virtual File
body: <p>I have a method which expects the one of the input variable to be of java.io.File type but what I get is only InputStream. Also, I cannot change the signature of the method.</p>
  
  <p>How can I convert the InputStream into File type with out actually writing the file on to the filesystem?</p>