|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.java.help.impl.DocumentParser
public abstract class DocumentParser
Field Summary | |
---|---|
protected java.io.Reader |
source
|
Constructor Summary | |
---|---|
DocumentParser(java.io.InputStream in)
***** Public interface ***** ***** |
|
DocumentParser(java.io.Reader src)
|
Method Summary | |
---|---|
protected void |
callFlush(char[] buf,
int offset,
int length)
Invokes flush(). |
protected abstract void |
comment(java.lang.String s)
This method inserts a comment It should be overridden by the subclass |
protected void |
commentEOFError(int resetTo)
|
protected abstract void |
doctype(java.lang.String root,
java.lang.String publicId,
java.lang.String systemId)
This method emits a doctype. |
protected abstract 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 |
eofError()
|
protected abstract 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 |
findCloseAngleForComment(char c)
|
protected abstract void |
flush(char[] buf,
int offset,
int length)
This method creates a block of text for a document. |
protected void |
generateError(int offset)
|
java.lang.String |
getDocumentSource()
|
protected char |
handleCommentOrDoctype(char c)
|
protected void |
initEntities()
|
void |
parse()
|
protected char |
parseEscape()
|
protected char |
parseTag()
|
void |
parseText()
|
protected abstract void |
pi(java.lang.String target,
java.lang.String data)
This method emits a pi It should be overridden by the subclass |
protected char |
readChar()
|
protected char |
scanIdentifier(char c)
|
protected char |
scanQuotedString(char c)
|
void |
setInput(java.io.InputStream i,
java.lang.String encoding)
|
void |
setInput(java.io.Reader src)
|
void |
setShouldCacheSource(boolean state)
|
protected void |
setXmlEntities(TagProperties attr)
|
protected void |
skipToCloseAngle(char c)
This method is called when parsing a tag and an error is encountered. |
protected char |
skipWhite(char c)
|
protected abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.Reader source
Constructor Detail |
---|
public DocumentParser(java.io.InputStream in)
public DocumentParser(java.io.Reader src)
Method Detail |
---|
public void setInput(java.io.Reader src)
public void setInput(java.io.InputStream i, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void setShouldCacheSource(boolean state)
public java.lang.String getDocumentSource()
public void parse() throws java.io.IOException
java.io.IOException
public void parseText() throws java.io.IOException
java.io.IOException
protected void callFlush(char[] buf, int offset, int length)
protected abstract void flush(char[] buf, int offset, int length)
protected abstract void comment(java.lang.String s)
protected abstract void tag(java.lang.String name, TagProperties atts, boolean endTag, boolean emptyTag)
protected abstract void pi(java.lang.String target, java.lang.String data)
protected abstract void doctype(java.lang.String root, java.lang.String publicId, java.lang.String systemId)
protected abstract java.lang.String documentAttribute(java.lang.String name)
protected abstract void errorString(java.lang.String s)
protected void findCloseAngleForComment(char c) throws java.io.IOException
java.io.IOException
protected char handleCommentOrDoctype(char c) throws java.io.IOException
java.io.IOException
protected void setXmlEntities(TagProperties attr)
protected char parseTag() throws java.io.IOException
java.io.IOException
protected char parseEscape() throws java.io.IOException
java.io.IOException
protected void initEntities()
protected char scanIdentifier(char c) throws java.io.IOException
java.io.IOException
protected char scanQuotedString(char c) throws java.io.IOException
java.io.IOException
protected char skipWhite(char c) throws java.io.IOException
java.io.IOException
protected char readChar() throws java.io.IOException
java.io.IOException
protected void skipToCloseAngle(char c) throws java.io.IOException
java.io.IOException
protected void generateError(int offset)
protected void commentEOFError(int resetTo)
protected void eofError()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |