Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners
In directory sc8-pr-cvs1:/tmp/cvs-serv17851/src/org/htmlparser/scanners
Modified Files:
TagScanner.java
Log Message:
Renamed Node to AbstractNode, extracted the new interface, Node, and moved line separator code from AbstractNode to Parser.
Index: TagScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/TagScanner.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** TagScanner.java 1 Jun 2003 20:50:12 -0000 1.26
--- TagScanner.java 13 Jun 2003 20:27:05 -0000 1.27
***************
*** 35,38 ****
--- 35,39 ----
import java.util.Map;
+ import org.htmlparser.AbstractNode;
import org.htmlparser.Node;
import org.htmlparser.NodeReader;
***************
*** 264,268 ****
* Insert an EndTag in the currentLine, just before the occurence of the provided tag
*/
! public String insertEndTagBeforeNode(Node node, String currentLine) {
String newLine = currentLine.substring(0,node.elementBegin());
newLine += "</A>";
--- 265,269 ----
* Insert an EndTag in the currentLine, just before the occurence of the provided tag
*/
! public String insertEndTagBeforeNode(AbstractNode node, String currentLine) {
String newLine = currentLine.substring(0,node.elementBegin());
newLine += "</A>";
|