* @return major component of the mime type
* @throws MimeException if you pass in an invalid mime type structure
*/
public static String getMajorComponent(String mimeType) throws MimeException {
if(mimeType == null) {
throw new MimeException("Invalid MimeType [" + mimeType + "].");
}
String [] parts = mimeSplitter.split(mimeType);
if(parts.length < 2) {
throw new MimeException("Invalid MimeType [" + mimeType + "].");
}
return parts[0].trim();
}