public class Compression extends javax.print.attribute.EnumSyntax implements javax.print.attribute.DocAttribute
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.
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Compression(int value)
Constructs a
Compression object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends javax.print.attribute.Attribute> |
getCategory()
Returns category of this class.
|
protected javax.print.attribute.EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
java.lang.String |
getName()
Returns the name of this attribute.
|
protected java.lang.String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
public static final Compression NONE
public static final Compression DEFLATE
public static final Compression GZIP
public static final Compression COMPRESS
protected Compression(int value)
Compression object.value - the enum valuepublic java.lang.Class<? extends javax.print.attribute.Attribute> getCategory()
getCategory in interface javax.print.attribute.AttributeCompression itself.public final java.lang.String getName()
getName in interface javax.print.attribute.Attributeprotected java.lang.String[] getStringTable()
getStringTable in class javax.print.attribute.EnumSyntaxprotected javax.print.attribute.EnumSyntax[] getEnumValueTable()
getEnumValueTable in class javax.print.attribute.EnumSyntax