code: public void setEncoding(String encoding)
      throws UnsupportedEncodingException
    {
      String mimeName = Encoding.getMimeName(encoding);
  
      if (mimeName != null && mimeName.equals(_readEncodingName))
        return;
  
      _readEncoding = Encoding.getReadEncoding(this, encoding);
      _readEncodingName = mimeName;
    }
docs: Sets the current read encoding.  The encoding can either be a
  Java encoding name or a mime encoding.
  
  @param encoding name of the read encoding