code: private static void writeStream(final InputStream input, final FileWriter writer)
              throws IOException
      {
          writeStream(input, writer, LineEndingStyle.LOCAL);
      }
docs: Write an inputstream to a FileWriter
  @param input input stream
  @param writer writer
  @throws IOException if an error occurs