com.sun.java.help.impl
Class Parser

java.lang.Object
  extended by com.sun.java.help.impl.DocumentParser
      extended by com.sun.java.help.impl.Parser

public class Parser
extends DocumentParser


Nested Class Summary
protected static class Parser.ParserMulticaster
           
 
Field Summary
protected  ParserListener listenerList
           
 
Fields inherited from class com.sun.java.help.impl.DocumentParser
source
 
Constructor Summary
Parser(java.io.InputStream in)
           
Parser(java.io.Reader src)
           
 
Method Summary
 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
 
Methods inherited from class com.sun.java.help.impl.DocumentParser
callFlush, commentEOFError, eofError, findCloseAngleForComment, generateError, getDocumentSource, handleCommentOrDoctype, initEntities, parse, parseEscape, parseTag, parseText, readChar, scanIdentifier, scanQuotedString, setInput, setInput, setShouldCacheSource, setXmlEntities, skipToCloseAngle, skipWhite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected ParserListener listenerList
Constructor Detail

Parser

public Parser(java.io.Reader src)

Parser

public Parser(java.io.InputStream in)
Method Detail

tag

protected void tag(java.lang.String name,
                   TagProperties atts,
                   boolean endTag,
                   boolean emptyTag)
Description copied from class: DocumentParser
This method emits a tag It should be overridden by the subclass

Specified by:
tag in class DocumentParser

pi

protected void pi(java.lang.String target,
                  java.lang.String data)
Description copied from class: DocumentParser
This method emits a pi It should be overridden by the subclass

Specified by:
pi in class DocumentParser

doctype

protected void doctype(java.lang.String root,
                       java.lang.String publicId,
                       java.lang.String systemId)
Description copied from class: DocumentParser
This method emits a doctype. Internal subset information is discarded It should be overridden by the subclass

Specified by:
doctype in class DocumentParser

flush

protected void flush(char[] buf,
                     int offset,
                     int length)
Description copied from class: DocumentParser
This method creates a block of text for a document. It should be overridden by the subclass

Specified by:
flush in class DocumentParser

comment

protected void comment(java.lang.String s)
Description copied from class: DocumentParser
This method inserts a comment It should be overridden by the subclass

Specified by:
comment in class DocumentParser

errorString

protected void errorString(java.lang.String s)
Description copied from class: DocumentParser
This method inserts a parse error string into the document It should be overridden by the subclass

Specified by:
errorString in class DocumentParser

documentAttribute

protected java.lang.String documentAttribute(java.lang.String name)
Description copied from class: DocumentParser
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

Specified by:
documentAttribute in class DocumentParser

addParserListener

public void addParserListener(ParserListener l)

removeParserListener

public void removeParserListener(ParserListener l)