title: Creating streams instead of temporary files and use them and discard them
body: <p>I want to write to a stream and use it immediately, rather than writing it to file and reading.  FIles will not be thread safe and I think it will possibly affect performance.</p>
  
  <pre><code>    //set property to an existing file
      prop.setProperty("$quoteValidity",""no");
      prop.setProperty("$date", "today");
      prop.setProperty("$quantitySum",  Integer.toString(quantitySum));
  
      //store it in temporary location
      prop.store(new FileOutputStream("&lt;Temp file location&gt;"), null);
  
      //open that temp file as stream
      InputStream propfile = new FileInputStream("&lt;Temp file location&gt;");
  
      List&lt;Order&gt; orderList = XmlToList.makeOrderFromNodeList(orderNode);
      //use that temp file
      Testground.generateXlsx(propfile,orderList);
  </code></pre>