JavaTM 2 Platform
Standard Ed. 6

javax.print
接口 AttributeException


public interface AttributeException

接口 AttributeException 是一个混合接口,PrintException 的子类可实现该接口以报告涉及一个或多个打印属性的错误条件,特定的 Print Service 实例不支持该条件。要么该属性根本不受支持,要么虽然该属性受支持,但是特定的指定值不受支持。Print Service API 未定义任何实现 AttributeException 接口的打印异常类,这由打印服务的实现程序来决定。


方法摘要
 Class[] getUnsupportedAttributes()
          返回其 PrintService 实例根本不支持该属性的打印属性类数组,如果没有这种属性,则返回 null。
 Attribute[] getUnsupportedValues()
          返回其 PrintService 实例支持该属性,但是不支持该属性特定值的打印属性数组,如果没有这种属性值,则返回 null。
 

方法详细信息

getUnsupportedAttributes

Class[] getUnsupportedAttributes()
返回其 PrintService 实例根本不支持该属性的打印属性类数组,如果没有这种属性,则返回 null。返回数组中的对象是扩展了基接口 Attribute 的类。

返回:
不受支持的属性类

getUnsupportedValues

Attribute[] getUnsupportedValues()
返回其 PrintService 实例支持该属性,但是不支持该属性特定值的打印属性数组,如果没有这种属性值,则返回 null。

返回:
不受支持的属性值

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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