APIdia Launch Partner
Top Description Fields Constructors Methods
javax.print.attribute.standard

public Class Compression

extends EnumSyntax
implements DocAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.DocAttribute, javax.print.attribute.Attribute, java.io.Serializable
Imports
java.io.Serial, javax.print.attribute.Attribute, .DocAttribute, .EnumSyntax

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.

Author
Alan Kaminsky

Field Summary

Modifier and TypeField and Description
public static final Compression
COMPRESS

UNIX compression technology.

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.

private static final Compression[]
myEnumValueTable

The enumeration value table for class Compression.

private static final String[]
myStringTable

The string table for class Compression.

public static final Compression
NONE

No compression is used.

private static final long
serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Constructor Summary

AccessConstructor and Description
protected
Compression(int
Integer value
value
)

Construct a new compression enumeration value with the given integer value.

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>

Returns:

printing attribute class (category), an instance of class java.lang.Class
getCategory
()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value.

protected EnumSyntax[]
getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class Compression.

public final String

Returns:

attribute category name
getName
()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

protected String[]
getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Compression.

Inherited from javax.print.attribute.EnumSyntax:
clonegetOffsetgetValuehashCodereadResolvetoString

Field Detail

COMPRESSback to summary
public static final Compression COMPRESS

UNIX compression technology.

DEFLATEback to summary
public static final Compression DEFLATE

ZIP public domain inflate/deflate compression technology.

GZIPback to summary
public static final Compression GZIP

GNU zip compression technology described in RFC 1952.

External Specification
https://www.rfc-editor.org/info/rfc1952
myEnumValueTableback to summary
private static final Compression[] myEnumValueTable

The enumeration value table for class Compression.

myStringTableback to summary
private static final String[] myStringTable

The string table for class Compression.

NONEback to summary
public static final Compression NONE

No compression is used.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.print.attribute.EnumSyntax.serialVersionUID.

Use serialVersionUID from JDK 1.4 for interoperability.

Annotations
@Serial

Constructor Detail

Compressionback to summary
protected Compression(int value)

Construct a new compression enumeration value with the given integer value.

Parameters
value:int

Integer value

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements 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.

Returns:Class<? extends Attribute>

printing attribute class (category), an instance of class java.lang.Class

Annotations
@Override
getEnumValueTableback to summary
protected EnumSyntax[] getEnumValueTable()

Overrides javax.print.attribute.EnumSyntax.getEnumValueTable.

Returns the enumeration value table for class Compression.

Annotations
@Override
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.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".

Returns:String

attribute category name

Annotations
@Override
getStringTableback to summary
protected String[] getStringTable()

Overrides javax.print.attribute.EnumSyntax.getStringTable.

Returns the string table for class Compression.

Annotations
@Override