[Htmlparser-cvs] htmlparser/src/org/htmlparser/tags LinkTag.java, 1.54, 1.55
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2006-06-06 02:45:57
|
Update of //cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19487/src/org/htmlparser/tags Modified Files: LinkTag.java Log Message: Eliminate deprecated classes and methods. Removed nodeDecorator package, StringNodeFactory, LinkProcesor, SpecialHashTable, and methods for linkData, non-Ex Attributes and FindAllNodesThatAre. Index: LinkTag.java =================================================================== RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/LinkTag.java,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** LinkTag.java 10 Apr 2005 23:20:45 -0000 1.54 --- LinkTag.java 4 Jun 2006 19:17:22 -0000 1.55 *************** *** 70,74 **** * where the link points to, and the text it contains. * <p> ! * In order to get the contents of the link tag, use the method linkData(), * which returns an enumeration of nodes encapsulated within the link. * <p> --- 70,74 ---- * where the link points to, and the text it contains. * <p> ! * In order to get the contents of the link tag, use the method children(), * which returns an enumeration of nodes encapsulated within the link. * <p> *************** *** 77,81 **** * Node node ; * ImageTag imageTag; ! * for (Enumeration e=linkTag.linkData();e.hasMoreElements();) { * node = (Node)e.nextElement(); * if (node instanceof ImageTag) { --- 77,81 ---- * Node node ; * ImageTag imageTag; ! * for (Enumeration e=linkTag.children();e.hasMoreElements();) { * node = (Node)e.nextElement(); * if (node instanceof ImageTag) { *************** *** 276,282 **** if (null != getChildren ()) { - sb.append(" "+"LinkData\n"); - sb.append(" "+"--------\n"); - Node node; int i = 0; --- 276,279 ---- *************** *** 288,292 **** } } - sb.append(" "+"*** END of LinkData ***\n"); return sb.toString(); } --- 285,288 ---- *************** *** 303,315 **** /** - * This method returns an enumeration of data that it contains - * @return Enumeration - * @deprecated Use children() instead. - */ - public SimpleNodeIterator linkData() { - return children(); - } - - /** * Extract the link from the HREF attribute. * @return The URL from the HREF attibute. This is absolute if the tag has --- 299,302 ---- |