public MIMEType(String ntype) throws MalformedMIMETypeException {
  slash=ntype.indexOf('/');
  if (slash == -1)   throw new MalformedMIMETypeException("No '/' in mime-type (" + ntype + ")!",ntype);
  mimeType=ntype;
}

public MIMEType ( String ntype ) throws MalformedMIMETypeException { slash = ntype . indexOf ( '/' ) ; if ( slash == - 1 ) throw new MalformedMIMETypeException ( "No '/' in mime-type (" + ntype + ")!" , ntype ) ; mimeType = ntype ; }
constructs a mime type from the given string . the string should be in the form " image / jpeg " etc .
