javax.print.attribute.standard
Class Compression

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

public class Compression
extends EnumSyntax
implements DocAttribute

The Compression printing attribute specifies if and how the supplied print data is compressed.

If this attribute is ommitted from the attributes set of the print data it is assumed that no compression is done.

IPP Compatibility: Compression is an IPP 1.1 attribute.

See Also:
Serialized Form

Field Summary
static Compression COMPRESS
          The print data is UNIX compressed.
static Compression DEFLATE
          The print data is ZIP compressed.
static Compression GZIP
          The print data is GNU Zip compressed.
static Compression NONE
          The print data is not compressed.
 
Constructor Summary
protected Compression(int value)
          Constructs a Compression object.
 
Method Summary
 Class<? extends Attribute> getCategory()
          Returns category of this class.
protected  EnumSyntax[] getEnumValueTable()
          Returns a table with the enumeration values for this object.
 String getName()
          Returns the name of this attribute.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final Compression NONE
The print data is not compressed.


DEFLATE

public static final Compression DEFLATE
The print data is ZIP compressed.


GZIP

public static final Compression GZIP
The print data is GNU Zip compressed.


COMPRESS

public static final Compression COMPRESS
The print data is UNIX compressed.

Constructor Detail

Compression

protected Compression(int value)
Constructs a Compression object.

Parameters:
value - the enum value
Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Specified by:
getCategory in interface Attribute
Returns:
The class Compression itself.

getName

public final String getName()
Returns the name of this attribute.

Specified by:
getName in interface Attribute
Returns:
The name "compression".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.