com.inet.html
Class InetHtmlParser
java.lang.Object
com.inet.html.InetHtmlParser
public class InetHtmlParser
- extends java.lang.Object
The HTML parser of JWebEngine. This parser can be configured by setting the configuration of the document
the parser operates on. It is not recommended to call the parser directly since the modification of the
document requires a write lock.
Method Summary |
void |
parse(java.io.Reader in,
InetHtmlDocument doc,
javax.swing.text.AbstractDocument.BranchElement root,
int insertOffset,
com.inet.html.InetHtmlDocument.EventList eventList,
boolean allowSpaces,
java.lang.Object sourceID)
Parses the input with this parser and add the content to the document. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetHtmlParser
public InetHtmlParser()
parse
public void parse(java.io.Reader in,
InetHtmlDocument doc,
javax.swing.text.AbstractDocument.BranchElement root,
int insertOffset,
com.inet.html.InetHtmlDocument.EventList eventList,
boolean allowSpaces,
java.lang.Object sourceID)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Parses the input with this parser and add the content to the document.
- Parameters:
in
- The reader to get the content fromdoc
- The document, to insert the contentroot
- The root element, where to insert the content, must not be nullinsertOffset
- where to insert the contenteventList
- optional event list to place the events for the parsing processallowSpaces
- if true, whitespaces are allowed as singular content (may be import for inserts)sourceID
- an optional object to identify the source of the content
- Throws:
java.io.IOException
- thrown by the reader
javax.swing.text.BadLocationException
- thrown, if the offset is not within the documents content