| Package | Description | 
|---|---|
| javax.print | Provides the principal classes and interfaces for the 
JavaTM Print Service API. | 
| javax.print.attribute | Provides classes and interfaces
that describe the types of JavaTM Print
Service attributes and how they can be collected into attribute sets. | 
| Modifier and Type | Method and Description | 
|---|---|
| AttributeSet | PrintService. getUnsupportedAttributes(DocFlavor flavor,
                        AttributeSet attributes)Identifies the attributes that are unsupported for a print request
 in the context of a particular DocFlavor. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract MultiDocPrintService[] | PrintServiceLookup. getMultiDocPrintServices(DocFlavor[] flavors,
                        AttributeSet attributes)Not called directly by applications. | 
| abstract PrintService[] | PrintServiceLookup. getPrintServices(DocFlavor flavor,
                AttributeSet attributes)Locates services that can be positively confirmed to support
 the combination of attributes and DocFlavors specified. | 
| Object | PrintService. getSupportedAttributeValues(Class<? extends Attribute> category,
                           DocFlavor flavor,
                           AttributeSet attributes)Determines the printing attribute values a client can specify in
 the given category when setting up a job for this print service. | 
| AttributeSet | PrintService. getUnsupportedAttributes(DocFlavor flavor,
                        AttributeSet attributes)Identifies the attributes that are unsupported for a print request
 in the context of a particular DocFlavor. | 
| boolean | PrintService. isAttributeValueSupported(Attribute attrval,
                         DocFlavor flavor,
                         AttributeSet attributes)Determines whether a client can specify the given printing
 attribute
 value when setting up a job for this Print Service. | 
| static MultiDocPrintService[] | PrintServiceLookup. lookupMultiDocPrintServices(DocFlavor[] flavors,
                           AttributeSet attributes)Locates MultiDoc print Services capable of printing MultiDocs
 containing all the specified doc flavors. | 
| static PrintService[] | PrintServiceLookup. lookupPrintServices(DocFlavor flavor,
                   AttributeSet attributes)Locates print services capable of printing the specified
  DocFlavor. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | DocAttributeSetInterface DocAttributeSet specifies the interface for a set of doc
 attributes, i.e. | 
| interface  | PrintJobAttributeSetInterface PrintJobAttributeSet specifies the interface for a set of print
 job attributes, i.e. | 
| interface  | PrintRequestAttributeSetInterface PrintRequestAttributeSet specifies the interface for a set of
 print request attributes, i.e. | 
| interface  | PrintServiceAttributeSetInterface PrintServiceAttributeSet specifies the interface for a set of
 print job attributes, i.e. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HashAttributeSetClass HashAttributeSet provides an  AttributeSetimplementation with characteristics of a hash map. | 
| class  | HashDocAttributeSetClass HashDocAttributeSet provides an attribute set which
 inherits its implementation from class  HashAttributeSetand enforces the semantic restrictions of interfaceDocAttributeSet. | 
| class  | HashPrintJobAttributeSetClass HashPrintJobAttributeSet provides an attribute set
 which inherits its implementation from class  HashAttributeSetand enforces the semantic restrictions of interfacePrintJobAttributeSet. | 
| class  | HashPrintRequestAttributeSetClass HashPrintRequestAttributeSet inherits its implementation from
 class  HashAttributeSetand enforces the
 semantic restrictions of interfacePrintRequestAttributeSet. | 
| class  | HashPrintServiceAttributeSetClass HashPrintServiceAttributeSet provides an attribute set
 which inherits its implementation from class  HashAttributeSetand enforces the semantic restrictions of interfacePrintServiceAttributeSet. | 
| Modifier and Type | Method and Description | 
|---|---|
| static AttributeSet | AttributeSetUtilities. synchronizedView(AttributeSet attributeSet)Creates a synchronized view of the given attribute set. | 
| static AttributeSet | AttributeSetUtilities. unmodifiableView(AttributeSet attributeSet)Creates an unmodifiable view of the given attribute set. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | HashAttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| boolean | DocAttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| boolean | PrintJobAttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| boolean | PrintServiceAttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| boolean | AttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| boolean | PrintRequestAttributeSet. addAll(AttributeSet attributes)Adds all of the elements in the specified set to this attribute. | 
| static AttributeSet | AttributeSetUtilities. synchronizedView(AttributeSet attributeSet)Creates a synchronized view of the given attribute set. | 
| static AttributeSet | AttributeSetUtilities. unmodifiableView(AttributeSet attributeSet)Creates an unmodifiable view of the given attribute set. | 
| Constructor and Description | 
|---|
| HashAttributeSet(AttributeSet attributes)Construct a new attribute set,
 initially populated with the values from the  given set. | 
| HashAttributeSet(AttributeSet attributes,
                Class<?> interfaceName)Construct a new attribute set, initially populated with the
 values from the  given set where the members of the attribute
 set are restricted to the given interface. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.