--- old/src/java.desktop/share/classes/javax/print/attribute/standard/ReferenceUriSchemesSupported.java 2017-08-11 15:13:12.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/print/attribute/standard/ReferenceUriSchemesSupported.java 2017-08-11 15:13:11.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,45 +22,50 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ + package javax.print.attribute.standard; -import javax.print.attribute.EnumSyntax; import javax.print.attribute.Attribute; +import javax.print.attribute.EnumSyntax; /** - * Class ReferenceUriSchemesSupported is a printing attribute class - * an enumeration, that indicates a "URI scheme," such as "http:" or "ftp:", - * that a printer can use to retrieve print data stored at a URI location. - * If a printer supports doc flavors with a print data representation class of + * Class {@code ReferenceUriSchemesSupported} is a printing attribute class an + * enumeration, that indicates a "URI scheme," such as "http:" or "ftp:", that a + * printer can use to retrieve print data stored at a {@code URI} location. If a + * printer supports doc flavors with a print data representation class of * {@code "java.net.URL"}, the printer uses instances of class - * ReferenceUriSchemesSupported to advertise the URI schemes it can accept. - * The acceptable URI schemes are included as service attributes in the - * lookup service; this lets clients search the - * for printers that can get print data using a certain URI scheme. The - * acceptable URI schemes can also be queried using the capability methods in - * interface {@code PrintService}. However, - * ReferenceUriSchemesSupported attributes are used solely for determining - * acceptable URI schemes, they are never included in a doc's, - * print request's, print job's, or print service's attribute set. - *

+ * {@code ReferenceUriSchemesSupported} to advertise the {@code URI} schemes it + * can accept. The acceptable {@code URI} schemes are included as service + * attributes in the lookup service; this lets clients search the for printers + * that can get print data using a certain {@code URI} scheme. The acceptable + * {@code URI} schemes can also be queried using the capability methods in + * interface {@code PrintService}. However, {@code ReferenceUriSchemesSupported} + * attributes are used solely for determining acceptable {@code URI} schemes, + * they are never included in a doc's, print request's, print job's, or print + * service's attribute set. + *

* The Internet Assigned Numbers Authority maintains the - * official - * list of URI schemes. + * official list of + * URI schemes. + *

+ * Class {@code ReferenceUriSchemesSupported} defines enumeration values for + * widely used {@code URI} schemes. A printer that supports additional + * {@code URI} schemes can define them in a subclass of class + * {@code ReferenceUriSchemesSupported}. *

- * Class ReferenceUriSchemesSupported defines enumeration values for widely - * used URI schemes. A printer that supports additional URI schemes - * can define them in a subclass of class ReferenceUriSchemesSupported. - *

- * IPP Compatibility: The category name returned by - * {@code getName()} is the IPP attribute name. The enumeration's - * integer value is the IPP enum value. The {@code toString()} method - * returns the IPP string representation of the attribute value. + * IPP Compatibility: The category name returned by {@code getName()} is + * the IPP attribute name. The enumeration's integer value is the IPP enum + * value. The {@code toString()} method returns the IPP string representation of + * the attribute value. * - * @author Alan Kaminsky + * @author Alan Kaminsky */ public class ReferenceUriSchemesSupported extends EnumSyntax implements Attribute { + /** + * Use serialVersionUID from JDK 1.4 for interoperability. + */ private static final long serialVersionUID = -8989076942813442805L; /** @@ -105,15 +110,18 @@ public static final ReferenceUriSchemesSupported FILE = new ReferenceUriSchemesSupported(7); /** - * Construct a new reference URI scheme enumeration value with the given - * integer value. + * Construct a new reference {@code URI} scheme enumeration value with the + * given integer value. * - * @param value Integer value. + * @param value Integer value */ protected ReferenceUriSchemesSupported(int value) { super (value); } + /** + * The string table for class {@code ReferenceUriSchemesSupported}. + */ private static final String[] myStringTable = { "ftp", "http", @@ -125,6 +133,10 @@ "file", }; + /** + * The enumeration value table for class + * {@code ReferenceUriSchemesSupported}. + */ private static final ReferenceUriSchemesSupported[] myEnumValueTable = { FTP, HTTP, @@ -137,7 +149,7 @@ }; /** - * Returns the string table for class ReferenceUriSchemesSupported. + * Returns the string table for class {@code ReferenceUriSchemesSupported}. */ protected String[] getStringTable() { return myStringTable.clone(); @@ -145,7 +157,7 @@ /** * Returns the enumeration value table for class - * ReferenceUriSchemesSupported. + * {@code ReferenceUriSchemesSupported}. */ protected EnumSyntax[] getEnumValueTable() { return (EnumSyntax[])myEnumValueTable.clone(); @@ -154,12 +166,13 @@ /** * Get the printing attribute class which is to be used as the "category" * for this printing attribute value. - *

- * For class ReferenceUriSchemesSupported and any vendor-defined - * subclasses, the category is class ReferenceUriSchemesSupported itself. + *

+ * For class {@code ReferenceUriSchemesSupported} and any vendor-defined + * subclasses, the category is class {@code ReferenceUriSchemesSupported} + * itself. * - * @return Printing attribute class (category), an instance of class - * {@link java.lang.Class java.lang.Class}. + * @return printing attribute class (category), an instance of class + * {@link Class java.lang.Class} */ public final Class getCategory() { return ReferenceUriSchemesSupported.class; @@ -168,15 +181,14 @@ /** * Get the name of the category of which this attribute value is an * instance. - *

- * For class ReferenceUriSchemesSupported and any vendor-defined + *

+ * For class {@code ReferenceUriSchemesSupported} and any vendor-defined * subclasses, the category name is * {@code "reference-uri-schemes-supported"}. * - * @return Attribute category name. + * @return attribute category name */ public final String getName() { return "reference-uri-schemes-supported"; } - }