Update of //cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19487/src/org/htmlparser
Modified Files:
Parser.java Tag.java
Removed Files:
StringNodeFactory.java
Log Message:
Eliminate deprecated classes and methods.
Removed nodeDecorator package, StringNodeFactory, LinkProcesor, SpecialHashTable,
and methods for linkData, non-Ex Attributes and FindAllNodesThatAre.
--- StringNodeFactory.java DELETED ---
Index: Parser.java
===================================================================
RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/Parser.java,v
retrieving revision 1.118
retrieving revision 1.119
diff -C2 -d -r1.118 -r1.119
*** Parser.java 2 Jun 2006 03:14:20 -0000 1.118
--- Parser.java 4 Jun 2006 19:17:21 -0000 1.119
***************
*** 771,795 ****
}
- /**
- * Convenience method to extract all nodes of a given class type.
- * Equivalent to
- * <code>extractAllNodesThatMatch (new NodeClassFilter (nodeType))</code>.
- * @param nodeType The class of the nodes to collect.
- * @throws ParserException If a parse error occurs.
- * @return A list of nodes which have the class specified.
- * @deprecated Use extractAllNodesThatMatch (new NodeClassFilter (cls)).
- * @see #extractAllNodesThatAre
- */
- public Node [] extractAllNodesThatAre (Class nodeType)
- throws
- ParserException
- {
- NodeList ret;
-
- ret = extractAllNodesThatMatch (new NodeClassFilter (nodeType));
-
- return (ret.toNodeArray ());
- }
-
//
// ConnectionMonitor interface
--- 771,774 ----
Index: Tag.java
===================================================================
RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/Tag.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Tag.java 15 Nov 2005 02:09:10 -0000 1.7
--- Tag.java 4 Jun 2006 19:17:21 -0000 1.8
***************
*** 109,141 ****
/**
- * Gets the attributes in the tag.
- * This is not the preferred method to get attributes, see {@link
- * #getAttributesEx getAttributesEx} which returns a list of {@link
- * Attribute} objects, which offer more information than the simple
- * <code>String</code> objects available from this <code>Hashtable</code>.
- * @return Returns a list of name/value pairs representing the attributes.
- * These are not in order, the keys (names) are converted to uppercase
- * and the values are not quoted, even if they need to be.
- * The table <em>will</em> return <code>null</code> if there was no value
- * for an attribute (either no equals sign or nothing to the right of the
- * equals sign). A special entry with a key of
- * SpecialHashtable.TAGNAME ("$<TAGNAME>$") holds the tag name.
- * The conversion to uppercase is performed with an ENGLISH locale.
- * @deprecated Use getAttributesEx() instead.
- * @see #setAttributes
- */
- Hashtable getAttributes ();
-
- /**
- * Sets the attributes.
- * A special entry with a key of SpecialHashtable.TAGNAME ("$<TAGNAME>$")
- * sets the tag name.
- * @param attributes The attribute collection to set.
- * @deprecated Use setAttributesEx() instead.
- * @see #getAttributes
- */
- void setAttributes (Hashtable attributes);
-
- /**
* Return the name of this tag.
* <p>
--- 109,112 ----
|