com.inet.html
Class InetHtmlParser

java.lang.Object
  extended by 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.


Constructor Summary
InetHtmlParser()
           
 
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
 

Constructor Detail

InetHtmlParser

public InetHtmlParser()
Method Detail

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 from
doc - The document, to insert the content
root - The root element, where to insert the content, must not be null
insertOffset - where to insert the content
eventList - optional event list to place the events for the parsing process
allowSpaces - 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