code: public Charset getCharset() {
          String enc = getEncoding();
          if (enc == null) {
              return Charset.defaultCharset();
          } else {
              return Charset.forName(enc);
          }
      }
docs: Returns the charset for the result's {@linkplain #getEncoding() encoding},
  or the default charset of this JVM.
  @return charset