code: public static boolean isRecognizedEncoding(String encoding)
      {
          EncodingInfo ei;
  
          String normalizedEncoding = encoding.toUpperCase();
          ei = (EncodingInfo) _encodingTableKeyJava.get(normalizedEncoding);
          if (ei == null)
              ei = (EncodingInfo) _encodingTableKeyMime.get(normalizedEncoding);
          if (ei != null)
              return true;
          return false;
      }
docs: Determines if the encoding specified was recognized by the
  serializer or not.
  
  @param encoding The encoding
  @return boolean - true if the encoding was recognized else false