Uses of Interface javax.print.attribute.DocAttributeSet (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Interface
javax.print.attribute.DocAttributeSet

- Packages that use DocAttributeSet
  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.

- - ### Uses of DocAttributeSet in javax.print

    Methods in javax.print that return DocAttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `DocAttributeSet` | SimpleDoc.`getAttributes()` Obtains the set of printing attributes for this doc object.
    `DocAttributeSet` | Doc.`getAttributes()` Obtains the set of printing attributes for this doc object.

    Constructors in javax.print with parameters of type DocAttributeSet
    Constructor and Description
    `SimpleDoc(Object printData, DocFlavor flavor, DocAttributeSet attributes)` Constructs a `SimpleDoc` with the specified print data, doc flavor and doc attribute set.

  - ### Uses of DocAttributeSet in javax.print.attribute

    Classes in javax.print.attribute that implement DocAttributeSet
    Modifier and Type | Class and Description
    --- | ---
    `class` | `HashDocAttributeSet` Class HashDocAttributeSet provides an attribute set which inherits its implementation from class `HashAttributeSet` and enforces the semantic restrictions of interface `DocAttributeSet`.

    Methods in javax.print.attribute that return DocAttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `static DocAttributeSet` | AttributeSetUtilities.`synchronizedView(DocAttributeSet attributeSet)` Creates a synchronized view of the given doc attribute set.
    `static DocAttributeSet` | AttributeSetUtilities.`unmodifiableView(DocAttributeSet attributeSet)` Creates an unmodifiable view of the given doc attribute set.

    Methods in javax.print.attribute with parameters of type DocAttributeSet
    Modifier and Type | Method and Description
    --- | ---
    `static DocAttributeSet` | AttributeSetUtilities.`synchronizedView(DocAttributeSet attributeSet)` Creates a synchronized view of the given doc attribute set.
    `static DocAttributeSet` | AttributeSetUtilities.`unmodifiableView(DocAttributeSet attributeSet)` Creates an unmodifiable view of the given doc attribute set.

    Constructors in javax.print.attribute with parameters of type DocAttributeSet
    Constructor and Description
    `HashDocAttributeSet(DocAttributeSet attributes)` 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 `DocAttribute` 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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.