code: public JsonWriter createWriter(OutputStream output) {
          Writer writer = null;
          try {
              writer = new OutputStreamWriter(output, "UTF-8");
          }
          catch (UnsupportedEncodingException e) {
              throw new RuntimeException(e);
          }
          return new JsonWriter(writer, typeAdapters);
      }
docs: Create a JsonWriter that write JSON to specified OutputStream.
  
  @param output The OutputStream object.
  @return JsonWriter object.