Uses of Class javax.swing.text.html.HTMLEditorKit.Parser (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
javax.swing.text.html.HTMLEditorKit.Parser

- Packages that use HTMLEditorKit.Parser
  Package | Description
  --- | ---
  javax.swing.text.html | Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
  javax.swing.text.html.parser | Provides the default HTML parser, along with support classes.

- - ### Uses of HTMLEditorKit.Parser in javax.swing.text.html

    Methods in javax.swing.text.html that return HTMLEditorKit.Parser
    Modifier and Type | Method and Description
    --- | ---
    `protected HTMLEditorKit.Parser` | HTMLEditorKit.`getParser()` Fetch the parser to use for reading HTML streams.
    `HTMLEditorKit.Parser` | HTMLDocument.`getParser()` Returns the parser that is used when inserting HTML into the existing document.

    Methods in javax.swing.text.html with parameters of type HTMLEditorKit.Parser
    Modifier and Type | Method and Description
    --- | ---
    `void` | HTMLDocument.`setParser(HTMLEditorKit.Parser parser)` Sets the parser that is used by the methods that insert html into the existing document, such as `setInnerHTML`, and `setOuterHTML`.

  - ### Uses of HTMLEditorKit.Parser in javax.swing.text.html.parser

    Subclasses of HTMLEditorKit.Parser in javax.swing.text.html.parser
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ParserDelegator` Responsible for starting up a new DocumentParser each time its parse method is invoked.

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.