|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.text.html.parser.Parser
|
+--javax.swing.text.html.parser.DocumentParser
A Parser for HTML Documents. Read an InputStream of HTML and invoke the appropriate methods in the ParserCallback class.
| Fields inherited from class javax.swing.text.html.parser.Parser |
dtd,
strict |
| Constructor Summary | |
DocumentParser(DTD dtd)
|
|
| Method Summary | |
protected void |
handleComment(char[] text)
Called when an HTML comment is encountered. |
protected void |
handleEmptyTag(TagElement tag)
Handle Empty Tag. |
protected void |
handleEndTag(TagElement tag)
Handle End Tag. |
protected void |
handleError(int ln,
String errorMsg)
An error has occurred. |
protected void |
handleStartTag(TagElement tag)
Handle Start Tag. |
protected void |
handleText(char[] data)
Handle Text. |
void |
parse(Reader in,
HTMLEditorKit.ParserCallback callback,
boolean ignoreCharSet)
|
| Methods inherited from class javax.swing.text.html.parser.Parser |
endTag,
error,
error,
error,
error,
flushAttributes,
getAttributes,
getCurrentLine,
getCurrentPos,
handleEOFInComment,
handleTitle,
makeTag,
makeTag,
markFirstTime,
parse,
parseDTDMarkup,
parseMarkupDeclarations,
startTag |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public DocumentParser(DTD dtd)
| Method Detail |
public void parse(Reader in,
HTMLEditorKit.ParserCallback callback,
boolean ignoreCharSet)
throws IOException
protected void handleStartTag(TagElement tag)
protected void handleComment(char[] text)
protected void handleEmptyTag(TagElement tag)
throws ChangedCharSetException
protected void handleEndTag(TagElement tag)
protected void handleText(char[] data)
protected void handleError(int ln,
String errorMsg)
|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||