title: reading file from getResourceAsStream omits newline
body: <p>I'm reading a resource from getResourceAsStream, adding all text to a StringBuilder and writing the content to a new file. However, the text comes back without newlines.
  When i do the same, but read a file without getResourceAsStream, it works perfectly.</p>
  
  <p>The code looks like the following:</p>
  
  <pre><code>      InputStream styleFile = this.getClass().getResourceAsStream(
              "/path/path/path/some.css");
  
      BufferedReader bufRead = new BufferedReader(new InputStreamReader(styleFile));
  
  
      StringBuilder builder = new StringBuilder();
      int nextchar;
      while ((nextchar = bufRead.read()) != -1)
      {
         builder.append((char)nextchar);
  
      }
      FileWriter outFile;
      try
      {
         outFile = new FileWriter(newStyleFile);
      }
     catch (IOException e)
     {
        //Log
     }
  
     PrintWriter out = new PrintWriter(outFile);
     out.write(builder.toString());
     out.close();
  </code></pre>