Lines Matching defs:primary
69 * Builds a {@code MimeType} with the given primary and sub type but has an
72 * @param primary the primary type of this {@code MimeType}
74 * @throws NullPointerException if either {@code primary} or {@code sub} is
77 public MimeType(String primary, String sub) throws MimeTypeParseException {
78 this(primary, sub, new MimeTypeParameterList());
85 * @param primary the primary type of this {@code MimeType}
88 * @throws NullPointerException if either {@code primary}, {@code sub} or
91 public MimeType(String primary, String sub, MimeTypeParameterList mtpl) throws
93 // check to see if primary is valid
94 if(isValidToken(primary)) {
95 primaryType = primary.toLowerCase(Locale.ENGLISH);
122 * {@code MimeType}s are equal if their primary types, subtypes, and
158 // we have a primary and sub type but no parameter list
173 // we have a ';' lexically before a '/' which means we have a primary type
178 // now validate the primary and sub types
180 // check to see if primary is valid
192 * Retrieve the primary type of this object.
254 * Returns {@code true} if the primary type and the subtype of this object
259 * @return {@code true} if the primary type and the subtype of this object
273 * Returns {@code true} if the primary type and the subtype of this object
278 * @return {@code true} if the primary type and the subtype of this object