com.sun.java.help.impl
Class Parser
This class parses an HTML or XML document.
Parser(InputStream in) -
*****
Public interface *****
*****
|
Parser(Reader src)
|
void | addParserListener(ParserListener l)
|
protected void | comment(String s) - This method inserts a comment
It should be overridden by the subclass
|
protected void | doctype(String root, String publicId, String systemId) - This method emits a doctype.
|
protected String | documentAttribute(String name) - This method looks up a &xxx; sequence in the document
properties (this is used for templates).
|
protected void | errorString(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(String target, String data) - This method emits a pi
It should be overridden by the subclass
|
void | removeParserListener(ParserListener l)
|
protected void | tag(String name, TagProperties atts, boolean endTag, boolean emptyTag) - This method emits a tag
It should be overridden by the subclass
|
callFlush , comment , commentEOFError , doctype , documentAttribute , eofError , errorString , findCloseAngleForComment , flush , generateError , getDocumentSource , handleCommentOrDoctype , initEntities , parse , parseEscape , parseTag , parseText , pi , readChar , scanIdentifier , scanQuotedString , setInput , setInput , setShouldCacheSource , setXmlEntities , skipToCloseAngle , skipWhite , tag |
Parser
public Parser(InputStream in)
*****
Public interface *****
*****
Parser
public Parser(Reader src)
comment
protected void comment(String s)
This method inserts a comment
It should be overridden by the subclass
- comment in interface DocumentParser
doctype
protected void doctype(String root,
String publicId,
String systemId)
This method emits a doctype. Internal subset information is discarded
It should be overridden by the subclass
- doctype in interface DocumentParser
documentAttribute
protected String documentAttribute(String name)
This method looks up a &xxx; sequence in the document
properties (this is used for templates). A return of null
means the proerty is undefined.
It should be overridden by the subclass
- documentAttribute in interface DocumentParser
errorString
protected void errorString(String s)
This method inserts a parse error string into the document
It should be overridden by the subclass
- errorString in interface DocumentParser
flush
protected void flush(char[] buf,
int offset,
int length)
This method creates a block of text for a document.
It should be overridden by the subclass
- flush in interface DocumentParser
pi
protected void pi(String target,
String data)
This method emits a pi
It should be overridden by the subclass
- pi in interface DocumentParser
removeParserListener
public void removeParserListener(ParserListener l)
tag
protected void tag(String name,
TagProperties atts,
boolean endTag,
boolean emptyTag)
This method emits a tag
It should be overridden by the subclass
- tag in interface DocumentParser