Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners
In directory sc8-pr-cvs1:/tmp/cvs-serv763/scanners
Modified Files:
CompositeTagScanner.java TagScanner.java
Log Message:
Eliminate deprecation warnings.
Clean up javadoc warnings.
Index: CompositeTagScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/CompositeTagScanner.java,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** CompositeTagScanner.java 8 Dec 2003 01:31:52 -0000 1.82
--- CompositeTagScanner.java 8 Dec 2003 13:13:59 -0000 1.83
***************
*** 140,145 ****
* scanning a <BODY> tag would mean that no </BODY> was found
* and needs to be corrected. These items are not prefixed by a '/'.
- * @param allowSelfChildren If <code>true</code> a tag of the same name is
- * allowed within this tag. Used to determine when an endtag is missing.
* @param balance_quotes <code>true</code> if scanning string nodes needs to
* honour quotes. For example, ScriptScanner defines this <code>true</code>
--- 140,143 ----
***************
*** 284,318 ****
{
throw new ParserException ("composite tags shouldn't be using this");
- }
-
- /**
- * You must override this method to create the tag of your choice upon successful parsing.
- * This method is called after the scanner has completed the scan.
- * The first four arguments are standard tag constructor arguments.
- * The last three are for the composite tag construction.
- * @param page The page the tag is found on.
- * @param start The starting offset in the page of the tag.
- * @param end The ending offset in the page of the tag.
- * @param attributes The contents of the tag as a list of {@list Attribute} objects.
- * @param startTag The tag that begins the composite tag.
- * @param endTag The tag that ends the composite tag. Note this could be a
- * virtual tag created to satisfy the scanner (check if it's starting and
- * ending position are the same).
- * @param children The list of nodes contained within the ebgin end tag pair.
- */
- public Tag createTag(Page page, int start, int end, Vector attributes, Tag startTag, Tag endTag, NodeList children) throws ParserException
- {
- CompositeTag ret;
-
- ret = new CompositeTag ();
- ret.setPage (page);
- ret.setStartPosition (start);
- ret.setEndPosition (end);
- ret.setAttributesEx (attributes);
- ret.setStartTag (startTag);
- ret.setEndTag (endTag);
- ret.setChildren (children);
-
- return (ret);
}
--- 282,285 ----
Index: TagScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/TagScanner.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** TagScanner.java 8 Dec 2003 01:31:52 -0000 1.51
--- TagScanner.java 8 Dec 2003 13:13:59 -0000 1.52
***************
*** 141,168 ****
}
- /**
- * Create a tag.
- * Override this method to create your own tag type.
- * @param tagData
- * @param tag
- * @param url
- * @return Tag
- * @throws ParserException
- */
- public Tag createTag(Page page, int start, int end, Vector attributes, Tag tag, String url) throws ParserException
- {
- Tag ret;
-
- ret = null;
-
- ret = new Tag ();
- ret.setPage (page);
- ret.setStartPosition (start);
- ret.setEndPosition (end);
- ret.setAttributesEx (attributes);
-
- return (ret);
- }
-
public String [] getID ()
{
--- 141,144 ----
|