title: Load a file in Resources with FileInputStream
body: <p>I know the safe way to open a file in the resources is:</p>
  
  <pre><code>  InputStream is = this.getClass().getResourceAsStream("/path/in/jar/file.name");  
  </code></pre>
  
  <p>now the problem is that my file is a model for a decider in the Weka Wrapper package and 
  the <a href="http://code.google.com/p/weka-wrapper/source/browse/trunk/src/weka/wrapper/Decider.java?r=2" rel="noreferrer">Decider class</a> has only a method:</p>
  
  <pre><code>  public void load(File file) throws Exception 
  </code></pre>
  
  <p>load takes the file and opens it as a FileInputStream. Do you see a workaround? I really would 
  like to ship the model putting it in the resources. I was thinking to create a temporary file, write the content of the model in the temp file and then pass the temporary file to Weka, but it is so dirty.. 
  other options? </p>