[Htmlparser-cvs] htmlparser/src/org/htmlparser/nodes AbstractNode.java,1.1,1.2 RemarkNode.java,1.1,1
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-06-14 00:07:00
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3132/nodes Modified Files: AbstractNode.java RemarkNode.java TextNode.java Log Message: Rework PrototypicalNodeFactory to use interfaces. Index: RemarkNode.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodes/RemarkNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RemarkNode.java 24 May 2004 16:18:37 -0000 1.1 --- RemarkNode.java 14 Jun 2004 00:06:51 -0000 1.2 *************** *** 202,208 **** ret.append (endpos); ret.append ("): "); ! while (startpos < endpos) { ! c = mText.charAt (startpos); switch (c) { --- 202,208 ---- ret.append (endpos); ret.append ("): "); ! for (int i = 0; i < mText.length (); i++) { ! c = mText.charAt (i); switch (c) { *************** *** 224,228 **** break; } - startpos++; } } --- 224,227 ---- Index: TextNode.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodes/TextNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TextNode.java 24 May 2004 16:18:37 -0000 1.1 --- TextNode.java 14 Jun 2004 00:06:51 -0000 1.2 *************** *** 172,178 **** ret.append (endpos); ret.append ("): "); ! while (startpos < endpos) { ! c = mText.charAt (startpos); switch (c) { --- 172,178 ---- ret.append (endpos); ret.append ("): "); ! for (int i = 0; i < mText.length (); i++) { ! c = mText.charAt (i); switch (c) { *************** *** 194,198 **** break; } - startpos++; } } --- 194,197 ---- Index: AbstractNode.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodes/AbstractNode.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AbstractNode.java 24 May 2004 16:18:37 -0000 1.1 --- AbstractNode.java 14 Jun 2004 00:06:51 -0000 1.2 *************** *** 84,87 **** --- 84,99 ---- /** + * Clone this object. + * Exposes java.lang.Object clone as a public method. + * @return A clone of this object. + * @exception CloneNotSupportedException This shouldn't be thrown since + * the {@link Node} interface extends Cloneable. + */ + public Object clone() throws CloneNotSupportedException + { + return (super.clone ()); + } + + /** * Returns a string representation of the node. This is an important method, it allows a simple string transformation * of a web page, regardless of a node.<br> |