javax.print.attribute.standard
Class Compression

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax 
      extended by javax.print.attribute.standard.Compression
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute , DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute

public class Compression
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute

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 sample code for javax.print.attribute.standard.Compression.NONE definition code for javax.print.attribute.standard.Compression.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.

See Also:
Serialized Form

Field Summary
static Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression COMPRESS sample code for javax.print.attribute.standard.Compression.COMPRESS definition code for javax.print.attribute.standard.Compression.COMPRESS
          UNIX compression technology.
static Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression DEFLATE sample code for javax.print.attribute.standard.Compression.DEFLATE definition code for javax.print.attribute.standard.Compression.DEFLATE
          ZIP public domain inflate/deflate compression technology.
static Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression GZIP sample code for javax.print.attribute.standard.Compression.GZIP definition code for javax.print.attribute.standard.Compression.GZIP
          GNU zip compression technology described in RFC 1952.
static Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression NONE sample code for javax.print.attribute.standard.Compression.NONE definition code for javax.print.attribute.standard.Compression.NONE
          No compression is used.
 
Constructor Summary
protected Compression sample code for javax.print.attribute.standard.Compression.Compression(int) definition code for javax.print.attribute.standard.Compression.Compression(int) (int value)
          Construct a new compression enumeration value with the given integer value.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.Compression.getCategory() definition code for javax.print.attribute.standard.Compression.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
protected  EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable sample code for javax.print.attribute.standard.Compression.getEnumValueTable() definition code for javax.print.attribute.standard.Compression.getEnumValueTable() ()
          Returns the enumeration value table for class Compression.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.Compression.getName() definition code for javax.print.attribute.standard.Compression.getName() ()
          Get the name of the category of which this attribute value is an instance.
protected  String sample code for java.lang.String definition code for java.lang.String [] getStringTable sample code for javax.print.attribute.standard.Compression.getStringTable() definition code for javax.print.attribute.standard.Compression.getStringTable() ()
          Returns the string table for class Compression.
 
Methods inherited from class javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
clone sample code for javax.print.attribute.EnumSyntax.clone() definition code for javax.print.attribute.EnumSyntax.clone() , getOffset sample code for javax.print.attribute.EnumSyntax.getOffset() definition code for javax.print.attribute.EnumSyntax.getOffset() , getValue sample code for javax.print.attribute.EnumSyntax.getValue() definition code for javax.print.attribute.EnumSyntax.getValue() , hashCode sample code for javax.print.attribute.EnumSyntax.hashCode() definition code for javax.print.attribute.EnumSyntax.hashCode() , readResolve sample code for javax.print.attribute.EnumSyntax.readResolve() definition code for javax.print.attribute.EnumSyntax.readResolve() , toString sample code for javax.print.attribute.EnumSyntax.toString() definition code for javax.print.attribute.EnumSyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

NONE sample code for javax.print.attribute.standard.Compression.NONE

public static final Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression  NONE
No compression is used.


DEFLATE sample code for javax.print.attribute.standard.Compression.DEFLATE

public static final Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression  DEFLATE
ZIP public domain inflate/deflate compression technology.


GZIP sample code for javax.print.attribute.standard.Compression.GZIP

public static final Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression  GZIP
GNU zip compression technology described in RFC 1952.


COMPRESS sample code for javax.print.attribute.standard.Compression.COMPRESS

public static final Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression  COMPRESS
UNIX compression technology.

Constructor Detail

Compression sample code for javax.print.attribute.standard.Compression(int) definition code for javax.print.attribute.standard.Compression(int)

protected Compression(int value)
Construct a new compression enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

getStringTable sample code for javax.print.attribute.standard.Compression.getStringTable() definition code for javax.print.attribute.standard.Compression.getStringTable()

protected String sample code for java.lang.String definition code for java.lang.String [] getStringTable()
Returns the string table for class Compression.

Overrides:
getStringTable sample code for javax.print.attribute.EnumSyntax.getStringTable() definition code for javax.print.attribute.EnumSyntax.getStringTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the string table

getEnumValueTable sample code for javax.print.attribute.standard.Compression.getEnumValueTable() definition code for javax.print.attribute.standard.Compression.getEnumValueTable()

protected EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable()
Returns the enumeration value table for class Compression.

Overrides:
getEnumValueTable sample code for javax.print.attribute.EnumSyntax.getEnumValueTable() definition code for javax.print.attribute.EnumSyntax.getEnumValueTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the value table

getCategory sample code for javax.print.attribute.standard.Compression.getCategory() definition code for javax.print.attribute.standard.Compression.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.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.

Specified by:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.Compression.getName() definition code for javax.print.attribute.standard.Compression.getName()

public final String sample code for java.lang.String definition code for java.lang.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".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.