-
-
Constructor Summary
Constructors
Constructor |
Description |
ParserDelegator() |
Creates ParserDelegator with default DTD.
|
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createDTD
protected static DTD createDTD(DTD dtd,
String name)
Recreates a DTD from an archived format with the specified name
.
- Parameters:
dtd
- a DTD
name
- the name of the resource, relative to the ParserDelegator class.
- Returns:
- the DTD with the specified
name
.
-
parse
public void parse(Reader r,
HTMLEditorKit.ParserCallback cb,
boolean ignoreCharSet)
throws IOException
Parse the given stream and drive the given callback
with the results of the parse. This method should
be implemented to be thread-safe.
- Specified by:
parse
in class HTMLEditorKit.Parser
- Parameters:
r
- a reader
cb
- a parser callback
ignoreCharSet
- if true
charset is ignoring
- Throws:
IOException
- if an I/O exception occurs