code: public static void write(CharSequence content, Writer writer, boolean closeOs) {
          try {
              writer.write(content.toString());
          } catch (IOException e) {
              throw E.ioException(e);
          } finally {
              if (closeOs) {
                  close(writer);
              }
          }
      }
docs: Write content into a writer.
  
  @param content
  the content to be written to the writer
  @param writer
  to where the content be written