1 /*
2 * Copyright (c) 2000, 2013, 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
100 * <TD>Implementation dependent*</TD>
101 * </TR>
102 * <TR>
103 * <TD>java.awt.print.Printable</TD>
104 * <TD>Implementation dependent*</TD>
105 * </TR>
106 * <TR>
107 * <TD>java.awt.print.Pageable</TD>
108 * <TD>Implementation dependent*</TD>
109 * </TR>
110 * </TABLE>
111 * <P>
112 * * In these cases the Print Service itself generates the print data sent
113 * to the printer. If the Print Service supports the JobKOctets attribute, for
114 * these cases the Print Service itself must calculate the size of the print
115 * data, replacing any JobKOctets value the client specified.
116 * <P>
117 * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The
118 * category name returned by <CODE>getName()</CODE> gives the IPP attribute
119 * name.
120 * <P>
121 *
122 * @see JobKOctetsSupported
123 * @see JobKOctetsProcessed
124 * @see JobImpressions
125 * @see JobMediaSheets
126 *
127 * @author Alan Kaminsky
128 */
129 public final class JobKOctets extends IntegerSyntax
130 implements PrintRequestAttribute, PrintJobAttribute {
131
132 private static final long serialVersionUID = -8959710146498202869L;
133
134 /**
135 * Construct a new job K octets attribute with the given integer value.
136 *
137 * @param value Integer value.
138 *
139 * @exception IllegalArgumentException
140 * (Unchecked exception) Thrown if <CODE>value</CODE> is less than 0.
|
1 /*
2 * Copyright (c) 2000, 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
100 * <TD>Implementation dependent*</TD>
101 * </TR>
102 * <TR>
103 * <TD>java.awt.print.Printable</TD>
104 * <TD>Implementation dependent*</TD>
105 * </TR>
106 * <TR>
107 * <TD>java.awt.print.Pageable</TD>
108 * <TD>Implementation dependent*</TD>
109 * </TR>
110 * </TABLE>
111 * <P>
112 * * In these cases the Print Service itself generates the print data sent
113 * to the printer. If the Print Service supports the JobKOctets attribute, for
114 * these cases the Print Service itself must calculate the size of the print
115 * data, replacing any JobKOctets value the client specified.
116 * <P>
117 * <B>IPP Compatibility:</B> The integer value gives the IPP integer value. The
118 * category name returned by <CODE>getName()</CODE> gives the IPP attribute
119 * name.
120 *
121 * @see JobKOctetsSupported
122 * @see JobKOctetsProcessed
123 * @see JobImpressions
124 * @see JobMediaSheets
125 *
126 * @author Alan Kaminsky
127 */
128 public final class JobKOctets extends IntegerSyntax
129 implements PrintRequestAttribute, PrintJobAttribute {
130
131 private static final long serialVersionUID = -8959710146498202869L;
132
133 /**
134 * Construct a new job K octets attribute with the given integer value.
135 *
136 * @param value Integer value.
137 *
138 * @exception IllegalArgumentException
139 * (Unchecked exception) Thrown if <CODE>value</CODE> is less than 0.
|