A B C D E F G H I J K L M N O P Q R S T U V W X _

A

AbstractNode - class org.htmlparser.nodes.AbstractNode.
The concrete base class for all types of nodes (tags, text remarks).
AbstractNode(Page, int, int) - Constructor for class org.htmlparser.nodes.AbstractNode
Create an abstract node with the page positions given.
AbstractNodeDecorator - class org.htmlparser.nodeDecorators.AbstractNodeDecorator.
Deprecated. Use direct subclasses or dynamic proxies instead.

Use either direct subclasses of the appropriate node and set them on the PrototypicalNodeFactory, or use a dynamic proxy implementing the required node type interface. In the former case this avoids the wrapping and delegation, while the latter case handles the wrapping and delegation without this class.

Here is an example of how to use dynamic proxies to accomplish the same effect as using decorators to wrap Text nodes:

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;

import org.htmlparser.Parser;
import org.htmlparser.PrototypicalNodeFactory;
import org.htmlparser.Text;
import org.htmlparser.nodes.TextNode;
import org.htmlparser.util.ParserException;

public class TextProxy
    implements
        InvocationHandler
{
    protected Object mObject;

    public static Object newInstance (Object object)
    {
        Class cls;

        cls = object.getClass ();
        return (Proxy.newProxyInstance (
            cls.getClassLoader (),
            cls.getInterfaces (),
            new TextProxy (object)));
    }

    private TextProxy (Object object)
    {
        mObject = object;
    }

    public Object invoke (Object proxy, Method m, Object[] args)
        throws Throwable
    {
        Object result;
        String name;
        try
        {
            result = m.invoke (mObject, args);
            name = m.getName ();
            if (name.equals ("clone"))
                result = newInstance (result); // wrap the cloned object
            else if (name.equals ("doSemanticAction")) // or other methods
               System.out.println (mObject); // do the needful on the TextNode
        }
        catch (InvocationTargetException e)
        {
            throw e.getTargetException ();
        }
        catch (Exception e)
        {
            throw new RuntimeException ("unexpected invocation exception: " +
                                       e.getMessage());
        }
        finally
        {
        }

        return (result);
    }

    public static void main (String[] args)
        throws
            ParserException
    {
        // create the wrapped text node and set it as the prototype
        Text text = (Text) TextProxy.newInstance (new TextNode (null, 0, 0));
        PrototypicalNodeFactory factory = new PrototypicalNodeFactory ();
        factory.setTextPrototype (text);
        // perform the parse
        Parser parser = new Parser (args[0]);
        parser.setNodeFactory (factory);
        parser.parse (null);
    }
}
 

AbstractNodeDecorator(Text) - Constructor for class org.htmlparser.nodeDecorators.AbstractNodeDecorator
Deprecated.  
AllTests - class org.htmlparser.tests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.AllTests
 
AllTests - class org.htmlparser.tests.lexerTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.lexerTests.AllTests
 
AllTests - class org.htmlparser.tests.nodeDecoratorTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.nodeDecoratorTests.AllTests
 
AllTests - class org.htmlparser.tests.parserHelperTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.parserHelperTests.AllTests
 
AllTests - class org.htmlparser.tests.scannersTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.scannersTests.AllTests
 
AllTests - class org.htmlparser.tests.tagTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.tagTests.AllTests
 
AllTests - class org.htmlparser.tests.utilTests.AllTests.
Insert the type's description here.
AllTests(String) - Constructor for class org.htmlparser.tests.utilTests.AllTests
AllTests constructor comment.
AllTests - class org.htmlparser.tests.visitorsTests.AllTests.
 
AllTests(String) - Constructor for class org.htmlparser.tests.visitorsTests.AllTests
 
AndFilter - class org.htmlparser.filters.AndFilter.
Accepts nodes matching all of it's predicate filters (AND operation).
AndFilter() - Constructor for class org.htmlparser.filters.AndFilter
Creates a new instance of an AndFilter.
AndFilter(NodeFilter, NodeFilter) - Constructor for class org.htmlparser.filters.AndFilter
Creates an AndFilter that accepts nodes acceptable to both filters.
AndFilterWrapper - class org.htmlparser.parserapplications.filterbuilder.wrappers.AndFilterWrapper.
Wrapper for AndFilters.
AndFilterWrapper() - Constructor for class org.htmlparser.parserapplications.filterbuilder.wrappers.AndFilterWrapper
Create a wrapper over a new AndFilter.
AppletTag - class org.htmlparser.tags.AppletTag.
AppletTag represents an <Applet> tag.
AppletTag() - Constructor for class org.htmlparser.tags.AppletTag
Create a new applet tag.
AppletTagTest - class org.htmlparser.tests.tagTests.AppletTagTest.
 
AppletTagTest(String) - Constructor for class org.htmlparser.tests.tagTests.AppletTagTest
 
AssertXmlEqualsTest - class org.htmlparser.tests.AssertXmlEqualsTest.
 
AssertXmlEqualsTest(String) - Constructor for class org.htmlparser.tests.AssertXmlEqualsTest
 
Attribute - class org.htmlparser.Attribute.
An attribute within a tag.
Attribute(String, String, String, char) - Constructor for class org.htmlparser.Attribute
Create an attribute with the name, assignment, value and quote given.
Attribute(String, String, char) - Constructor for class org.htmlparser.Attribute
Create an attribute with the name, value and quote given.
Attribute(String) - Constructor for class org.htmlparser.Attribute
Create a whitespace attribute with the value given.
Attribute(String, String) - Constructor for class org.htmlparser.Attribute
Create an attribute with the name and value given.
Attribute(String, String, String) - Constructor for class org.htmlparser.Attribute
Create an attribute with the name, assignment string and value given.
Attribute() - Constructor for class org.htmlparser.Attribute
Create an empty attribute.
AttributeTests - class org.htmlparser.tests.lexerTests.AttributeTests.
 
AttributeTests(String) - Constructor for class org.htmlparser.tests.lexerTests.AttributeTests
 
Attributes - class org.htmlparser.sax.Attributes.
Provides access to the tag attributes.
Attributes(Tag, NamespaceSupport, String[]) - Constructor for class org.htmlparser.sax.Attributes
Create an attibute access object.
about() - Method in class org.htmlparser.lexerapplications.thumbelina.ThumbelinaFrame
Display information about Thumbelina.
aboutAction() - Method in class org.htmlparser.parserapplications.filterbuilder.FilterBuilder
The action to take when "About" menu or button pressed.
accept(NodeVisitor) - Method in interface org.htmlparser.Node
Apply the visitor to this node.
accept(Node) - Method in interface org.htmlparser.NodeFilter
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.filters.AndFilter
Accept nodes that are acceptable to all of it's predicate filters.
accept(Node) - Method in class org.htmlparser.filters.CssSelectorNodeFilter
Accept nodes that match the selector expression.
accept(Node) - Method in class org.htmlparser.filters.HasAttributeFilter
Accept tags with a certain attribute.
accept(Node) - Method in class org.htmlparser.filters.HasChildFilter
Accept tags with children acceptable to the filter.
accept(Node) - Method in class org.htmlparser.filters.HasParentFilter
Accept tags with parent acceptable to the filter.
accept(Node) - Method in class org.htmlparser.filters.HasSiblingFilter
Accept tags with a sibling acceptable to the filter.
accept(Node) - Method in class org.htmlparser.filters.IsEqualFilter
Accept the node.
accept(Node) - Method in class org.htmlparser.filters.LinkRegexFilter
Accept nodes that are a LinkTag and have a URL that matches the regex pattern supplied in the constructor.
accept(Node) - Method in class org.htmlparser.filters.LinkStringFilter
Accept nodes that are a LinkTag and have a URL that matches the pattern supplied in the constructor.
accept(Node) - Method in class org.htmlparser.filters.NodeClassFilter
Accept nodes that are assignable from the class provided in the constructor.
accept(Node) - Method in class org.htmlparser.filters.NotFilter
Accept nodes that are not acceptable to the predicate filter.
accept(Node) - Method in class org.htmlparser.filters.OrFilter
Accept nodes that are acceptable to any of it's predicate filters.
accept(Node) - Method in class org.htmlparser.filters.RegexFilter
Accept string nodes that match the regular expression.
accept(Node) - Method in class org.htmlparser.filters.StringFilter
Accept string nodes that contain the string.
accept(Node) - Method in class org.htmlparser.filters.TagNameFilter
Accept nodes that are tags and have a matching tag name.
accept(NodeVisitor) - Method in class org.htmlparser.nodeDecorators.AbstractNodeDecorator
Deprecated.  
accept(NodeVisitor) - Method in class org.htmlparser.nodes.AbstractNode
Visit this node.
accept(NodeVisitor) - Method in class org.htmlparser.nodes.RemarkNode
Remark visiting code.
accept(NodeVisitor) - Method in class org.htmlparser.nodes.TagNode
Default tag visiting code.
accept(NodeVisitor) - Method in class org.htmlparser.nodes.TextNode
String visiting code.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.AndFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasAttributeFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasChildFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasParentFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasSiblingFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.NodeClassFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.NotFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.OrFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.RegexFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.StringFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.TagNameFilterWrapper
Predicate to determine whether or not to keep the given node.
accept(NodeVisitor) - Method in class org.htmlparser.tags.CompositeTag
Tag visiting code.
actionPerformed(ActionEvent) - Method in class org.htmlparser.beans.BeanyBaby
Handles UI events.
actionPerformed(ActionEvent) - Method in class org.htmlparser.lexerapplications.thumbelina.ThumbelinaFrame
Handles events from the menu.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.FilterBuilder
Handles menu and toolbar item choices.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasAttributeFilterWrapper
Invoked when an action occurs on the combo box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasChildFilterWrapper
Invoked when an action occurs on the check box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasParentFilterWrapper
Invoked when an action occurs on the check box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasSiblingFilterWrapper
Invoked when an action occurs.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.NodeClassFilterWrapper
Invoked when an action occurs on the combo box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.RegexFilterWrapper
Invoked when an action occurs on the combo box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.StringFilterWrapper
Invoked when an action occurs on the combo box.
actionPerformed(ActionEvent) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.TagNameFilterWrapper
Invoked when an action occurs on the combo box.
add(Cursor) - Method in class org.htmlparser.lexer.PageIndex
Add an element to the list
add(int) - Method in class org.htmlparser.lexer.PageIndex
Add an element to the list
add(Image, URL) - Method in class org.htmlparser.lexerapplications.thumbelina.Sequencer
Add an image to the pending list.
add(Image, URL, boolean) - Method in class org.htmlparser.lexerapplications.thumbelina.Sequencer
Add an image to the panel.
add(Picture) - Method in class org.htmlparser.lexerapplications.thumbelina.TileSet
Add a single picture to the list.
add(Node) - Method in class org.htmlparser.util.NodeList
 
add(NodeList) - Method in class org.htmlparser.util.NodeList
Add another node list to this one.
addAttributeValues(Set, Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasAttributeFilterWrapper
Add the attribute values from the node to the set of attribute values.
addAttributes(Set, Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.HasAttributeFilterWrapper
Add the attribute names from the node to the set of attribute names.
addChild(Tag, Node) - Method in class org.htmlparser.scanners.CompositeTagScanner
Add a child to the given tag.
addCookies(URLConnection) - Method in class org.htmlparser.http.ConnectionManager
Generate a HTTP cookie header value string from the cookie jar.
addCookies(Vector, String, Vector) - Method in class org.htmlparser.http.ConnectionManager
Add qualified cookies from cookies into list.
addFilter(JMenu, JToolBar, String) - Method in class org.htmlparser.parserapplications.filterbuilder.FilterBuilder
Add a filter to the GUI.
addFilter(Filter) - Method in class org.htmlparser.parserapplications.filterbuilder.SubFilterList
Add a filter to the container contents.
addFilter(Filter, int) - Method in class org.htmlparser.parserapplications.filterbuilder.SubFilterList
Add a filter to the container at a specific position.
addHistory(String) - Method in class org.htmlparser.lexerapplications.thumbelina.Thumbelina
Adds the given url to the history list.
addLayoutComponent(String, Component) - Method in class org.htmlparser.parserapplications.filterbuilder.layouts.NullLayoutManager
Adds the specified component with the specified name to the layout.
addLayoutComponent(Component, Object) - Method in class org.htmlparser.parserapplications.filterbuilder.layouts.NullLayoutManager
Adds the specified component to the layout, using the specified constraint object.
addLayoutComponent(String, Component) - Method in class org.htmlparser.parserapplications.filterbuilder.layouts.VerticalLayoutManager
Adds the specified component with the specified name to the layout.
addLayoutComponent(Component, Object) - Method in class org.htmlparser.parserapplications.filterbuilder.layouts.VerticalLayoutManager
Adds the specified component to the layout, using the specified constraint object.
addName(Set, Node) - Method in class org.htmlparser.parserapplications.filterbuilder.wrappers.TagNameFilterWrapper
Add the tag name and it's children's tag names to the set of tag names.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.beans.FilterBean
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.beans.HTMLLinkBean
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.beans.HTMLTextBean
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.beans.LinkBean
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.beans.StringBean
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class org.htmlparser.lexerapplications.thumbelina.Thumbelina
Add a PropertyChangeListener to the listener list.
addSelection(Filter) - Method in class org.htmlparser.parserapplications.filterbuilder.FilterBuilder
Add a filter to the current selection set.
addSpacer() - Method in class org.htmlparser.parserapplications.filterbuilder.SubFilterList
Stuff a spacer component at the end of the list.
addTreeModelListener(TreeModelListener) - Method in class org.htmlparser.parserapplications.filterbuilder.HtmlTreeModel
Adds a listener for the TreeModelEvent posted after the tree changes.
adjustClipForInsets(Graphics) - Method in class org.htmlparser.lexerapplications.thumbelina.PicturePanel
Adjust the graphics clip region to account for insets.
advance() - Method in class org.htmlparser.lexer.Cursor
Move the cursor position ahead one character.
append(URL) - Method in class org.htmlparser.lexerapplications.thumbelina.Thumbelina
Append the given URL to the queue.
append(ArrayList) - Method in class org.htmlparser.lexerapplications.thumbelina.Thumbelina
Append the given URLs to the queue.
applyFilters() - Method in class org.htmlparser.beans.FilterBean
Apply each of the filters.
asString() - Method in class org.htmlparser.util.NodeList
 
assertHiddenIDTagPresent(FormTag, String, String) - Method in class org.htmlparser.tests.ParserTestCase
 
assertNodeCount(int) - Method in class org.htmlparser.tests.ParserTestCase
 
assertNodeCount(String, int, Node[]) - Method in class org.htmlparser.tests.ParserTestCase
 
assertSameType(String, Node, Node) - Method in class org.htmlparser.tests.ParserTestCase
 
assertStringEquals(String, String, String) - Method in class org.htmlparser.tests.ParserTestCase
 
assertSuperType(String, Class, Object) - Method in class org.htmlparser.tests.ParserTestCase
 
assertTagEquals(String, Node, Node) - Method in class org.htmlparser.tests.ParserTestCase
 
assertTagNameShouldBe(String, Node, String) - Method in class org.htmlparser.tests.visitorsTests.TagFindingVisitorTest
 
assertType(String, Class, Object) - Method in class org.htmlparser.tests.ParserTestCase
 
assertTypeNameSize(String, String, String, String, InputTag) - Method in class org.htmlparser.tests.tagTests.FormTagTest
 
assertTypeNameValue(String, String, String, String, InputTag) - Method in class org.htmlparser.tests.tagTests.FormTagTest
 
assertXmlEquals(String, String, String) - Method in class org.htmlparser.tests.ParserTestCase
 
available() - Method in class org.htmlparser.lexer.InputStreamSource
Get the number of available characters.
available() - Method in class org.htmlparser.lexer.Source
Get the number of available characters.
available() - Method in class org.htmlparser.lexer.Stream
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
available() - Method in class org.htmlparser.lexer.StringSource
Get the number of available characters.

A B C D E F G H I J K L M N O P Q R S T U V W X _