public abstract class Media extends EnumSyntax implements DocAttribute, PrintRequestAttribute, PrintJobAttribute
Media may be specified in different ways.
A Media object is constructed with a value which represents one of the ways in which the Media attribute can be specified.
IPP Compatibility: The category name returned by
getName() is the IPP attribute name. The enumeration's
integer value is the IPP enum value. The
returns the IPP string representation of the attribute value.
|Modifier||Constructor and Description|
Constructs a new media attribute specified by name.
|Modifier and Type||Method and Description|
Returns whether this media attribute is equivalent to the passed in object.
Get the printing attribute class which is to be used as the "category" for this printing attribute value.
Get the name of the category of which this attribute value is an instance.
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toString
protected Media(int value)
value- a value
public boolean equals(Object object)
objectis not null.
objectis of the same subclass of Media as this object.
For class Media and any vendor-defined subclasses, the category is class Media itself.
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, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.