/**
  * This method is used to get the primary and secondary parts joined together with a "/". This is
  * typically how a content type is examined. Here convenience is most important, we can easily
  * compare content types without any parameters.
  *
  * @return this returns the primary and secondary types
  */
 public String getType() {
   return type.toString();
 }
 /**
  * This will add the given name and value to the parameters map. If any previous value of the
  * given name has been inserted into the map then this will overwrite that value. This is used to
  * ensure that the string value is inserted to the map.
  *
  * @param name this is the name of the value to be inserted
  * @param value this is the value of a that is to be inserted
  */
 private void insert(ParseBuffer name, ParseBuffer value) {
   map.put(name.toString(), value.toString());
 }
 /**
  * This is used to retrieve the secondary type of this MIME type. The secondary type part within
  * the MIME type defines the generic type. For example <code>text/html; charset=UTF-8</code>. This
  * will return the HTML value. If there is no secondary type then this will return <code>null
  * </code> otherwise the string value.
  *
  * @return the primary type part of this MIME type
  */
 public String getSecondary() {
   return secondary.toString();
 }
 /**
  * This is used to retrieve the <code>charset</code> of this MIME type. This is a special
  * parameter associated with the type, if the parameter is not contained within the type then this
  * will return null, which typically means the default of ISO-8859-1.
  *
  * @return the value that this parameter contains
  */
 public String getCharset() {
   return charset.toString();
 }
 /**
  * This is used to retrieve the primary type of this MIME type. The primary type part within the
  * MIME type defines the generic type. For example <code>text/plain; charset=UTF-8</code>. This
  * will return the text value. If there is no primary type then this will return <code>null</code>
  * otherwise the string value.
  *
  * @return the primary type part of this MIME type
  */
 public String getPrimary() {
   return primary.toString();
 }