public abstract class Media extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
媒体可以以不同的方式指定。
Media对象被构造成一个值,它表示可以指定Media属性的一种方式。
 IPP兼容性:由getName()返回的类别名称是IPP属性名称。 枚举的整数值是IPP枚举值。 toString()方法返回属性值的IPP字符串表示形式。 
| Modifier | Constructor and Description | 
|---|---|
| protected  | Media(int value)
              构造由name指定的新媒体属性。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)
              返回此media属性是否等同于传入的对象。 
             | 
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toStringpublic boolean equals(Object object)
object不为空。 object是与该对象相同的媒体子类。 equals在 
            Object 
           object - 要比较的对象。 
           object等同于此媒体属性,则为True, 
            object为false。 
           Object.hashCode() , HashMap 
           public final 类<? extends Attribute> getCategory()
对于Media类和任何供应商定义的子类,该类别是Media本身。
getCategory在接口 
            Attribute 
           java.lang.Class的一个实例。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.