23 * questions.
24 */
25 package javax.print.attribute.standard;
26
27 import javax.print.attribute.Attribute;
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.DocAttribute;
30
31 /**
32 * Class Compression is a printing attribute class, an enumeration, that
33 * specifies how print data is compressed. Compression is an attribute of the
34 * print data (the doc), not of the Print Job. If a Compression attribute is not
35 * specified for a doc, the printer assumes the doc's print data is uncompressed
36 * (i.e., the default Compression value is always {@link #NONE
37 * NONE}).
38 * <P>
39 * <B>IPP Compatibility:</B> The category name returned by
40 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
41 * integer value is the IPP enum value. The <code>toString()</code> method
42 * returns the IPP string representation of the attribute value.
43 * <P>
44 *
45 * @author Alan Kaminsky
46 */
47 public class Compression extends EnumSyntax implements DocAttribute {
48
49 private static final long serialVersionUID = -5716748913324997674L;
50
51 /**
52 * No compression is used.
53 */
54 public static final Compression NONE = new Compression(0);
55
56 /**
57 * ZIP public domain inflate/deflate compression technology.
58 */
59 public static final Compression DEFLATE = new Compression(1);
60
61 /**
62 * GNU zip compression technology described in
63 * <A HREF="http://www.ietf.org/rfc/rfc1952.txt">RFC 1952</A>.
|
23 * questions.
24 */
25 package javax.print.attribute.standard;
26
27 import javax.print.attribute.Attribute;
28 import javax.print.attribute.EnumSyntax;
29 import javax.print.attribute.DocAttribute;
30
31 /**
32 * Class Compression is a printing attribute class, an enumeration, that
33 * specifies how print data is compressed. Compression is an attribute of the
34 * print data (the doc), not of the Print Job. If a Compression attribute is not
35 * specified for a doc, the printer assumes the doc's print data is uncompressed
36 * (i.e., the default Compression value is always {@link #NONE
37 * NONE}).
38 * <P>
39 * <B>IPP Compatibility:</B> The category name returned by
40 * <CODE>getName()</CODE> is the IPP attribute name. The enumeration's
41 * integer value is the IPP enum value. The <code>toString()</code> method
42 * returns the IPP string representation of the attribute value.
43 *
44 * @author Alan Kaminsky
45 */
46 public class Compression extends EnumSyntax implements DocAttribute {
47
48 private static final long serialVersionUID = -5716748913324997674L;
49
50 /**
51 * No compression is used.
52 */
53 public static final Compression NONE = new Compression(0);
54
55 /**
56 * ZIP public domain inflate/deflate compression technology.
57 */
58 public static final Compression DEFLATE = new Compression(1);
59
60 /**
61 * GNU zip compression technology described in
62 * <A HREF="http://www.ietf.org/rfc/rfc1952.txt">RFC 1952</A>.
|