public static class HTMLEditorKit.ParserCallback extends Object
flush
方法将是最后的方法,给接收机的机会冲任何挂起的数据到文件。
参考documentparser,使用默认的语法分析器,对attributesets,内容进一步信息的位置,和其他信息。
DocumentParser
Modifier and Type | Field and Description |
---|---|
static Object |
IMPLIED
这是在attributeset属性指示元素暗示如通过,字符串“<> foo
<不>
”包含一个隐含的HTML元素和一个隐含的体元。
不>
|
Constructor and Description |
---|
ParserCallback() |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
void |
handleComment(char[] data, int pos) |
void |
handleEndOfLineString(String eol)
这是调用后流解析完毕,但在
flush 。
|
void |
handleEndTag(HTML.Tag t, int pos) |
void |
handleError(String errorMsg, int pos) |
void |
handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos) |
void |
handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos) |
void |
handleText(char[] data, int pos) |
public static final Object IMPLIED
public void flush() throws BadLocationException
public void handleText(char[] data, int pos)
public void handleComment(char[] data, int pos)
public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)
public void handleEndTag(HTML.Tag t, int pos)
public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos)
public void handleError(String errorMsg, int pos)
public void handleEndOfLineString(String eol)
flush
。
eol
将其中n、R或\r\n,这曾经是遇到的最在解析流。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.