code: public String getEncodingByMimeType(String type)
      {
          String encoding =null;
  
          if (type!=null)
              encoding=(String)_encodingMap.get(type);
  
          return encoding;
      }
docs: Get char encoding by mime type.
  @param type A mime type.
  @return The prefered character encoding for that type if known.