code: public static CharsetEncoder encoder(Charset charset, CodingErrorAction codingErrorAction) {
          return encoder(charset, codingErrorAction, codingErrorAction);
      }
docs: Returns a new {@link CharsetEncoder} for the {@link Charset} with the specified error action.
  
  @param charset The specified charset
  @param codingErrorAction The encoder's action for malformed-input and unmappable-character errors
  @return The encoder for the specified {@code charset}