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

- Packages that use DocumentHandler
  Package | Description
  --- | ---
  org.xml.sax | This package provides the core SAX APIs.
  org.xml.sax.helpers | This package contains "helper" classes, including support for bootstrapping SAX-based applications.

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

    Classes in org.xml.sax that implement DocumentHandler
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `HandlerBase` Deprecated. This class works with the deprecated `DocumentHandler` interface. It has been replaced by the SAX2 `DefaultHandler` class.

    Methods in org.xml.sax with parameters of type DocumentHandler
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Parser.`setDocumentHandler(DocumentHandler handler)` Deprecated. Allow an application to register a document event handler.

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

    Classes in org.xml.sax.helpers that implement DocumentHandler
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `ParserAdapter` Adapt a SAX1 Parser as a SAX2 XMLReader.

    Methods in org.xml.sax.helpers with parameters of type DocumentHandler
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | XMLReaderAdapter.`setDocumentHandler(DocumentHandler handler)` Register the SAX1 document event handler.

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.