[Htmlparser-cvs] htmlparser/src/org/htmlparser/util NodeList.java,1.58,1.59
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2005-06-19 12:01:22
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26937/htmlparser/src/org/htmlparser/util Modified Files: NodeList.java Log Message: Changes to allow compilation of htmllexer.jar by gcj. Move non-JDK1.1 functionality to HttpHeader class. Unhook NodeList from filters by removing searchFor(cls) - use keepAllNodesThatMatch(new NodeClassFilter(cls)) instead. Include classes missing from closure set. Index: NodeList.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/util/NodeList.java,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** NodeList.java 12 Mar 2005 13:39:47 -0000 1.58 --- NodeList.java 19 Jun 2005 12:01:14 -0000 1.59 *************** *** 285,307 **** /** - * Convenience method to search for nodes of the given type non-recursively. - * @param classType The class to search for. - */ - public NodeList searchFor (Class classType) - { - return (searchFor (classType, false)); - } - - /** - * Convenience method to search for nodes of the given type. - * @param classType The class to search for. - * @param recursive If <code>true<code> digs into the children recursively. - */ - public NodeList searchFor (Class classType, boolean recursive) - { - return (extractAllNodesThatMatch (new NodeClassFilter (classType), recursive)); - } - - /** * Utility to apply a visitor to a node list. * Provides for a visitor to modify the contents of a page and get the --- 285,288 ---- |