int MEDIA = 1; int MEDIASUB = 2; int PARAM_NAME = 3; int PARAM_VALUE = 4; int COMMENT_START = 5;
  private void parseMimeType(String mimeType)  {    // FIXME: This method is know to be not completely correct, but it works for now.        int pos = mimeType.indexOf(';');    if (pos != -1)      {	String tmp = mimeType.substring(pos + 2);	mimeType = mimeType.substring(0, pos);	pos = tmp.indexOf('=');	params.put(tmp.substring(0, pos), tmp.substring(pos + 1));      }    pos = mimeType.indexOf('/');    if (pos == -1)      throw new IllegalArgumentException();    mediaType = mimeType.substring(0, pos);    mediaSubtype = mimeType.substring(pos + 1);  }