Home » openjdk-7 » javax » print » attribute » standard » [javadoc | source]
javax.print.attribute.standard
public class: Compression [javadoc | source]
java.lang.Object
   javax.print.attribute.EnumSyntax
      javax.print.attribute.standard.Compression

All Implemented Interfaces:
    DocAttribute, Cloneable, Serializable

Class Compression is a printing attribute class, an enumeration, that specifies how print data is compressed. Compression is an attribute of the print data (the doc), not of the Print Job. If a Compression attribute is not specified for a doc, the printer assumes the doc's print data is uncompressed (i.e., the default Compression value is always NONE ).

IPP Compatibility: The category name returned by getName() is the IPP attribute name. The enumeration's integer value is the IPP enum value. The toString() method returns the IPP string representation of the attribute value.

Field Summary
public static final  Compression NONE    No compression is used. 
public static final  Compression DEFLATE    ZIP public domain inflate/deflate compression technology. 
public static final  Compression GZIP    GNU zip compression technology described in RFC 1952
public static final  Compression COMPRESS    UNIX compression technology. 
Constructor:
 protected Compression(int value) 
Method from javax.print.attribute.standard.Compression Summary:
getCategory,   getEnumValueTable,   getName,   getStringTable
Methods from javax.print.attribute.EnumSyntax:
clone,   getEnumValueTable,   getOffset,   getStringTable,   getValue,   hashCode,   readResolve,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.print.attribute.standard.Compression Detail:
 public final Class<Attribute> getCategory() 
    Get the printing attribute class which is to be used as the "category" for this printing attribute value.

    For class Compression and any vendor-defined subclasses, the category is class Compression itself.

 protected EnumSyntax[] getEnumValueTable() 
    Returns the enumeration value table for class Compression.
 public final String getName() 
    Get the name of the category of which this attribute value is an instance.

    For class Compression and any vendor-defined subclasses, the category name is "compression".

 protected String[] getStringTable() 
    Returns the string table for class Compression.