1 /*
2 * Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
24 */
25 package javax.print.attribute.standard;
26
27 import java.net.URI;
28 import java.util.Locale;
29
30 import javax.print.attribute.Attribute;
31 import javax.print.attribute.URISyntax;
32 import javax.print.attribute.PrintServiceAttribute;
33
34 /**
35 * Class PrinterURI is a printing attribute class, a URI, that specifies the
36 * globally unique name of a printer. If it has such a name, an administrator
37 * determines a printer's URI and sets this attribute to that name.
38 * <P>
39 * <B>IPP Compatibility:</B> This implements the
40 * IPP printer-uri attribute. The string form returned by
41 * <CODE>toString()</CODE> gives the IPP printer-uri value.
42 * The category name returned by <CODE>getName()</CODE>
43 * gives the IPP attribute name.
44 * <P>
45 *
46 * @author Robert Herriot
47 */
48
49 public final class PrinterURI extends URISyntax
50 implements PrintServiceAttribute {
51
52 private static final long serialVersionUID = 7923912792485606497L;
53
54 /**
55 * Constructs a new PrinterURI attribute with the specified URI.
56 *
57 * @param uri URI of the printer
58 *
59 * @exception NullPointerException
60 * (unchecked exception) Thrown if <CODE>uri</CODE> is null.
61 */
62 public PrinterURI(URI uri) {
63 super (uri);
64 }
|
1 /*
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
24 */
25 package javax.print.attribute.standard;
26
27 import java.net.URI;
28 import java.util.Locale;
29
30 import javax.print.attribute.Attribute;
31 import javax.print.attribute.URISyntax;
32 import javax.print.attribute.PrintServiceAttribute;
33
34 /**
35 * Class PrinterURI is a printing attribute class, a URI, that specifies the
36 * globally unique name of a printer. If it has such a name, an administrator
37 * determines a printer's URI and sets this attribute to that name.
38 * <P>
39 * <B>IPP Compatibility:</B> This implements the
40 * IPP printer-uri attribute. The string form returned by
41 * <CODE>toString()</CODE> gives the IPP printer-uri value.
42 * The category name returned by <CODE>getName()</CODE>
43 * gives the IPP attribute name.
44 *
45 * @author Robert Herriot
46 */
47
48 public final class PrinterURI extends URISyntax
49 implements PrintServiceAttribute {
50
51 private static final long serialVersionUID = 7923912792485606497L;
52
53 /**
54 * Constructs a new PrinterURI attribute with the specified URI.
55 *
56 * @param uri URI of the printer
57 *
58 * @exception NullPointerException
59 * (unchecked exception) Thrown if <CODE>uri</CODE> is null.
60 */
61 public PrinterURI(URI uri) {
62 super (uri);
63 }
|