com.sun.java.help.impl
public class Parser extends DocumentParser
Modifier and Type | Class and Description |
---|---|
protected static class |
Parser.ParserMulticaster |
Modifier and Type | Field and Description |
---|---|
protected ParserListener |
listenerList |
source
Constructor and Description |
---|
Parser(java.io.InputStream in) |
Parser(java.io.Reader src) |
Modifier and Type | Method and Description |
---|---|
void |
addParserListener(ParserListener l) |
protected void |
comment(java.lang.String s)
This method inserts a comment
It should be overridden by the subclass
|
protected void |
doctype(java.lang.String root,
java.lang.String publicId,
java.lang.String systemId)
This method emits a doctype.
|
protected java.lang.String |
documentAttribute(java.lang.String name)
This method looks up a &xxx; sequence in the document
properties (this is used for templates).
|
protected void |
errorString(java.lang.String s)
This method inserts a parse error string into the document
It should be overridden by the subclass
|
protected void |
flush(char[] buf,
int offset,
int length)
This method creates a block of text for a document.
|
protected void |
pi(java.lang.String target,
java.lang.String data)
This method emits a pi
It should be overridden by the subclass
|
void |
removeParserListener(ParserListener l) |
protected void |
tag(java.lang.String name,
TagProperties atts,
boolean endTag,
boolean emptyTag)
This method emits a tag
It should be overridden by the subclass
|
callFlush, commentEOFError, eofError, findCloseAngleForComment, generateError, getDocumentSource, handleCommentOrDoctype, initEntities, parse, parseEscape, parseTag, parseText, readChar, scanIdentifier, scanQuotedString, setInput, setInput, setShouldCacheSource, setXmlEntities, skipToCloseAngle, skipWhite
protected ParserListener listenerList
public Parser(java.io.Reader src)
public Parser(java.io.InputStream in)
protected void tag(java.lang.String name, TagProperties atts, boolean endTag, boolean emptyTag)
DocumentParser
tag
in class DocumentParser
protected void pi(java.lang.String target, java.lang.String data)
DocumentParser
pi
in class DocumentParser
protected void doctype(java.lang.String root, java.lang.String publicId, java.lang.String systemId)
DocumentParser
doctype
in class DocumentParser
protected void flush(char[] buf, int offset, int length)
DocumentParser
flush
in class DocumentParser
protected void comment(java.lang.String s)
DocumentParser
comment
in class DocumentParser
protected void errorString(java.lang.String s)
DocumentParser
errorString
in class DocumentParser
protected java.lang.String documentAttribute(java.lang.String name)
DocumentParser
documentAttribute
in class DocumentParser
public void addParserListener(ParserListener l)
public void removeParserListener(ParserListener l)