| Package | Description | 
|---|---|
| javax.swing.text.html.parser | Provides the default HTML parser, along with support classes. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected TagElement | Parser. makeTag(Element elem) | 
| protected TagElement | Parser. makeTag(Element elem,
       boolean fictional)Makes a TagElement. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | Parser. handleEmptyTag(TagElement tag)Called when an empty tag is encountered. | 
| protected void | DocumentParser. handleEmptyTag(TagElement tag)Handle Empty Tag. | 
| protected void | Parser. handleEndTag(TagElement tag)Called when an end tag is encountered. | 
| protected void | DocumentParser. handleEndTag(TagElement tag)Handle End Tag. | 
| protected void | Parser. handleStartTag(TagElement tag)Called when a start tag is encountered. | 
| protected void | DocumentParser. handleStartTag(TagElement tag)Handle Start Tag. | 
| protected void | Parser. startTag(TagElement tag)Handle a start tag. | 
 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.