## Uses of Interface
org.xml.sax.Attributes

- Packages that use Attributes
  Package | Description
  --- | ---
  org.xml.sax | This package provides the core SAX APIs.
  org.xml.sax.ext | This package contains interfaces to SAX2 facilities that conformant SAX drivers won't necessarily support.
  org.xml.sax.helpers | This package contains "helper" classes, including support for bootstrapping SAX-based applications.

- - ### Uses of Attributes in org.xml.sax

    Methods in org.xml.sax with parameters of type Attributes
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | ContentHandler.`startElement(String uri, String localName, String qName, Attributes atts)` Receive notification of the beginning of an element.

  - ### Uses of Attributes in org.xml.sax.ext

    Subinterfaces of Attributes in org.xml.sax.ext
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `Attributes2` SAX2 extension to augment the per-attribute information provided though `Attributes`.

    Classes in org.xml.sax.ext that implement Attributes
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `Attributes2Impl` SAX2 extension helper for additional Attributes information, implementing the `Attributes2` interface.

    Methods in org.xml.sax.ext with parameters of type Attributes
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Attributes2Impl.`setAttributes(Attributes atts)` Copy an entire Attributes object.

    Constructors in org.xml.sax.ext with parameters of type Attributes
    Constructor | Description
    --- | ---
    `Attributes2Impl(Attributes atts)` Copy an existing Attributes or Attributes2 object.

  - ### Uses of Attributes in org.xml.sax.helpers

    Classes in org.xml.sax.helpers that implement Attributes
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `AttributesImpl` Default implementation of the Attributes interface.

    Methods in org.xml.sax.helpers with parameters of type Attributes
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | AttributesImpl.`setAttributes(Attributes atts)` Copy an entire Attributes object.
    `void` | XMLReaderAdapter.`startElement(String uri, String localName, String qName, Attributes atts)` Adapt a SAX2 start element event.
    `void` | XMLFilterImpl.`startElement(String uri, String localName, String qName, Attributes atts)` Filter a start element event.
    `void` | DefaultHandler.`startElement(String uri, String localName, String qName, Attributes attributes)` Receive notification of the start of an element.

    Constructors in org.xml.sax.helpers with parameters of type Attributes
    Constructor | Description
    --- | ---
    `AttributesImpl(Attributes atts)` Copy an existing Attributes object.

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.