
CHAPTER 32
Thejavax.swing.text.html.par ser Package
This package includes classes and interfaces for parsing HTML text. The parser is
configur ed by a DTD (document type definition) and is therefor e customizable.
The parser conforms to the HTMLEditorKit.Parser and HTMLEditorKit.ParserCallback inter-
faces defined in the javax.swing .text.html package. Most applications can ignore this
package and simply use javax.swing .JEditorPane and javax.swing .text.html.HTMLEditorKit to
handle their HTML parsing and display needs. Figure 32-1 shows the class hierar-
chy of this package.
AttributeList Ja va 1.2
javax.swing .text.html.par ser serializable
This class is an element in a linked list of attribute specifications. The complete list of
attribute specifications repr esents an ATTLIST element of a DTD. Each AttributeList object
repr esents the name, type, and values of a single attribute. Use the getNext() method to
obtain the next AttributeList object in the linked list.
public final class AttributeList implements DTDConstants, Serializable {
// Public Constructors
public AttributeList(String name);
public AttributeList(String name, int type, int modifier, String value, java.util.Vector values, AttributeList next);
// Public Class Methods
public static int name2type(String nm);
public static String type2name(int tp);
// Property Accessor Methods (by property name)
public int getModifier();
public String getName ...