< prev index next >

src/java.desktop/share/classes/javax/print/MimeType.java

Print this page

        

*** 193,205 **** * string is converted into canonical form and stored internally. * * @param s MIME media type string. * * @exception NullPointerException ! * (unchecked exception) Thrown if <CODE>s</CODE> is null. * @exception IllegalArgumentException ! * (unchecked exception) Thrown if <CODE>s</CODE> does not obey the * syntax for a MIME media type string. */ public MimeType(String s) { parse (s); } --- 193,205 ---- * string is converted into canonical form and stored internally. * * @param s MIME media type string. * * @exception NullPointerException ! * (unchecked exception) Thrown if {@code s} is null. * @exception IllegalArgumentException ! * (unchecked exception) Thrown if {@code s} does not obey the * syntax for a MIME media type string. */ public MimeType(String s) { parse (s); }
*** 269,279 **** * the same media type (because the default character set for plain text is * US-ASCII). * * @param obj Object to test. * ! * @return True if this MIME type object equals <CODE>obj</CODE>, false * otherwise. */ public boolean equals (Object obj) { return(obj != null && obj instanceof MimeType && --- 269,279 ---- * the same media type (because the default character set for plain text is * US-ASCII). * * @param obj Object to test. * ! * @return True if this MIME type object equals {@code obj}, false * otherwise. */ public boolean equals (Object obj) { return(obj != null && obj instanceof MimeType &&
*** 523,546 **** return result.toString(); } /** * Parses the given string into canonical pieces and stores the pieces in ! * {@link #myPieces <CODE>myPieces</CODE>}. * <P> * Special rules applied: * <UL> * <LI> If the media type is text, the value of a charset parameter is * converted to lowercase. * </UL> * * @param s MIME media type string. * * @exception NullPointerException ! * (unchecked exception) Thrown if <CODE>s</CODE> is null. * @exception IllegalArgumentException ! * (unchecked exception) Thrown if <CODE>s</CODE> does not obey the * syntax for a MIME media type string. */ private void parse(String s) { // Initialize. if (s == null) { --- 523,546 ---- return result.toString(); } /** * Parses the given string into canonical pieces and stores the pieces in ! * {@link #myPieces myPieces}. * <P> * Special rules applied: * <UL> * <LI> If the media type is text, the value of a charset parameter is * converted to lowercase. * </UL> * * @param s MIME media type string. * * @exception NullPointerException ! * (unchecked exception) Thrown if {@code s} is null. * @exception IllegalArgumentException ! * (unchecked exception) Thrown if {@code s} does not obey the * syntax for a MIME media type string. */ private void parse(String s) { // Initialize. if (s == null) {
< prev index next >