code: private static void writeReader(final Reader reader, final FileWriter writer) throws IOException {
          writeReader(reader, writer, LineEndingStyle.LOCAL);
      }
docs: Copy from a Reader to a FileWriter
  @param reader reader
  @param writer writer
  @throws IOException if an error occurs