|
|||||||||
| Home >> All >> org >> enhydra >> xml >> xmlc >> html >> parsers >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.enhydra.xml.xmlc.html.parsers.swing
Class ParserAdaptor

java.lang.Objectorg.enhydra.xml.xmlc.html.parsers.swing.ParserAdaptor
- class ParserAdaptor
- extends java.lang.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.
| Nested Class Summary | |
(package private) class |
ParserAdaptor.DocumentParser11
DocumentParser for 1.1 that allows LINKs in headers. |
(package private) class |
ParserAdaptor.DocumentParserBase
Base for all DocumentParser adaptors. |
private static class |
ParserAdaptor.DTDCreator
|
| Field Summary | |
static java.lang.String |
IMPLIED_PSEUDO_ATTR
Name of attribute added to HEAD tag when an empty one is created by the parser. |
static java.lang.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
|
private static int |
swingVersion
Version of Swing being used |
| Constructor Summary | |
(package private) |
ParserAdaptor()
|
| Method Summary | |
javax.swing.text.html.parser.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 |
| Field Detail |
SWING_1_1
public static final int SWING_1_1
- Swing version constants, can be compared numerically
- See Also:
- Constant Field Values
SWING_1_2
public static final int SWING_1_2
- See Also:
- Constant Field Values
SWING_1_3
public static final int SWING_1_3
- See Also:
- Constant Field Values
swingVersion
private static int swingVersion
- Version of Swing being used
MAGIC_END_TAG
public static final java.lang.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'.
- See Also:
- Constant Field Values
IMPLIED_PSEUDO_ATTR
public static final java.lang.String IMPLIED_PSEUDO_ATTR
- Name of attribute added to HEAD tag when an empty one is created
by the parser.
- See Also:
- Constant Field Values
| Constructor Detail |
ParserAdaptor
ParserAdaptor()
| Method Detail |
getSwingVersion
public int getSwingVersion()
- Get the guessed version of swing being used.
getParser
public javax.swing.text.html.parser.DocumentParser getParser()
- Create a parser base on the version of swing we are linked to.
|
|||||||||
| Home >> All >> org >> enhydra >> xml >> xmlc >> html >> parsers >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.enhydra.xml.xmlc.html.parsers.swing.ParserAdaptor