org.enhydra.xml.xmlc.html.parsers.swing
Class ParserAdaptor
java.lang.Object
|
+--org.enhydra.xml.xmlc.html.parsers.swing.ParserAdaptor
- class ParserAdaptor
- extends Object
Wrapper around the Swing HTML parser that attempts to correct for
various problems in different versions of the Swing. This code
is tightly bound to the Swing code.
This corrects the following problems
- Swing 1.1:
- LINK elements were not allowed in the HEAD.
Field Summary |
static String |
IMPLIED_PSEUDO_ATTR
Name of attribute added to HEAD tag when an empty one is created
by the parser. |
static String |
MAGIC_END_TAG
Magic tag name that is generate as a simple tag at the end of the parse
in Swing 1.2. |
static int |
SWING_1_1
Swing version constants, can be compared numerically |
static int |
SWING_1_2
|
static int |
SWING_1_3
|
Method Summary |
(package private) static void |
()
Class initializer. |
DocumentParser |
getParser()
Create a parser base on the version of swing we are linked to. |
int |
getSwingVersion()
Get the guessed version of swing being used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SWING_1_1
public static final int SWING_1_1
- Swing version constants, can be compared numerically
SWING_1_2
public static final int SWING_1_2
SWING_1_3
public static final int SWING_1_3
MAGIC_END_TAG
public static final String MAGIC_END_TAG
- Magic tag name that is generate as a simple tag at the end of the parse
in Swing 1.2. This is a little string, don't know why they did this
(or why is called `end of line'.
IMPLIED_PSEUDO_ATTR
public static final String IMPLIED_PSEUDO_ATTR
- Name of attribute added to HEAD tag when an empty one is created
by the parser.
ParserAdaptor
ParserAdaptor()
static void ()
- Class initializer.
getSwingVersion
public int getSwingVersion()
- Get the guessed version of swing being used.
getParser
public DocumentParser getParser()
- Create a parser base on the version of swing we are linked to.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.