title: Java .class.getResourceAsStream()
body: <p>To the best of my knowledge, <code>Class.getResourceAsStream()</code> gets an <code>InputStream</code> directed at a file within the .jar file? If I'm wrong about this, please correct me.</p>
  
  <p>Is there any way to temporarily 'load' an external file into the .jar, so that the <code>getResourceAsStream()</code> method can retrieve it?</p>
  
  <p>For example loading <code>C:/folder/file.txt</code> into the .jar so that <code>MyClass.class
  .getResourceAsStream("file.txt")</code> would return a working <code>InputStream</code> to the file, or at least a copy of it that has been 'loaded' temporarily into the .jar.</p>
  
  <p>I'm sorry I've worded this so badly, I hope you can understand what I'm trying to do, wasn't quite sure how to explain it simply.</p>