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, skipWhiteprotected 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)
DocumentParsertag in class DocumentParserprotected void pi(java.lang.String target,
java.lang.String data)
DocumentParserpi in class DocumentParserprotected void doctype(java.lang.String root,
java.lang.String publicId,
java.lang.String systemId)
DocumentParserdoctype in class DocumentParserprotected void flush(char[] buf,
int offset,
int length)
DocumentParserflush in class DocumentParserprotected void comment(java.lang.String s)
DocumentParsercomment in class DocumentParserprotected void errorString(java.lang.String s)
DocumentParsererrorString in class DocumentParserprotected java.lang.String documentAttribute(java.lang.String name)
DocumentParserdocumentAttribute in class DocumentParserpublic void addParserListener(ParserListener l)
public void removeParserListener(ParserListener l)