title: Converting Properties to an Input Stream?
body: <p>Is it possible to convert a Properties to an InputStream after we modified it.</p>
  
  <p>Here is a bit of code to clarify the question:</p>
  
  <pre><code>sftpConnection = new connectSFTP(host, user, pass, port);
  Properties ssProperties = new Properties();
  InputStream in = null;
  try{
      in = sftpConnection.download(fileName, fileDirectory);
      ssProperties.load(in);
      //System.out.println("File Found");
      ssProperties.setProperty(key, value);
      sftpConnection.upload(&lt;&lt;Need the new InputStream here&gt;&gt;, fileDirectory);
      in.close();     
  }
  catch(Exception ex)
  {
  System.out.println("File Not Found"); 
  } 
  </code></pre>