JavaTM 2 Platform
Standard Ed. 6

javax.print.attribute.standard
类 Compression

java.lang.Object
  继承者 javax.print.attribute.EnumSyntax
      继承者 javax.print.attribute.standard.Compression
所有已实现的接口:
Serializable, Cloneable, Attribute, DocAttribute

public class Compression
extends EnumSyntax
implements DocAttribute

Compression 类是打印属性类,它是一个枚举值,指定如何压缩打印数据。Compression 是打印数据(文档)的属性,而不是 Print Job 的属性。如果没有指定文档的 Compression 属性,则打印机假定该文档的打印数据是未压缩的(即默认的 Compression 值总是 NONE)。

IPP Compatibility: getName() 所返回的类别名称为 IPP 属性名称。枚举的整数值为 IPP 枚举值。toString() 方法返回属性值的 IPP 字符串表示形式。

另请参见:
序列化表格

字段摘要
static Compression COMPRESS
          UNIX 压缩技术。
static Compression DEFLATE
          ZIP 公共域 inflate/deflate 压缩技术。
static Compression GZIP
          RFC 1952 中所描述的 GNU zip 压缩技术。
static Compression NONE
          不使用压缩。
 
构造方法摘要
protected Compression(int value)
          构造具有给定整数值的新压缩枚举值。
 
方法摘要
 Class<? extends Attribute> getCategory()
          获取将被用作此打印属性值的“类别”的打印属性类。
protected  EnumSyntax[] getEnumValueTable()
          返回 Compression 类的枚举值表。
 String getName()
          获取类别名称,这里此属性值是该类别的实例。
protected  String[] getStringTable()
          返回 Compression 类的字符串表。
 
从类 javax.print.attribute.EnumSyntax 继承的方法
clone, getOffset, getValue, hashCode, readResolve, toString
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

NONE

public static final Compression NONE
不使用压缩。


DEFLATE

public static final Compression DEFLATE
ZIP 公共域 inflate/deflate 压缩技术。


GZIP

public static final Compression GZIP
RFC 1952 中所描述的 GNU zip 压缩技术。


COMPRESS

public static final Compression COMPRESS
UNIX 压缩技术。

构造方法详细信息

Compression

protected Compression(int value)
构造具有给定整数值的新压缩枚举值。

参数:
value - 整数值。
方法详细信息

getStringTable

protected String[] getStringTable()
返回 Compression 类的字符串表。

覆盖:
EnumSyntax 中的 getStringTable
返回:
字符串表

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
返回 Compression 类的枚举值表。

覆盖:
EnumSyntax 中的 getEnumValueTable
返回:
值表

getCategory

public final Class<? extends Attribute> getCategory()
获取将被用作此打印属性值的“类别”的打印属性类。

对于 Compression 类和任何供应商定义的子类,类别是 Compression 类本身。

指定者:
接口 Attribute 中的 getCategory
返回:
打印属性类(类别),它是 java.lang.Class 类的实例。

getName

public final String getName()
获取类别名称,这里此属性值是该类别的实例。

对于 Compression 类和任何供应商定义的子类,类别名称为 "compression"

指定者:
接口 Attribute 中的 getName
返回:
属性类别名称。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only