Update of //cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv25700
Modified Files:
Parser.java
Log Message:
Update javadoc for new Parser constructor behaviour.
Index: Parser.java
===================================================================
RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/Parser.java,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** Parser.java 30 May 2006 02:53:56 -0000 1.115
--- Parser.java 30 May 2006 03:11:02 -0000 1.116
***************
*** 51,59 ****
* constructors that take a {@link #Parser(String) String},
* a {@link #Parser(URLConnection) URLConnection}, or a
! * {@link #Parser(Lexer) Lexer}. In the case of a String, an
* attempt is made to open it as a URL, and if that fails it assumes it is a
! * local disk file. If you want to actually parse a String, use
! * {@link #setInputHTML setInputHTML()} after using the
! * {@link #Parser() no-args} constructor, or use {@link #createParser}.
* <p>The Parser provides access to the contents of the
* page, via a {@link #elements() NodeIterator}, a
--- 51,61 ----
* constructors that take a {@link #Parser(String) String},
* a {@link #Parser(URLConnection) URLConnection}, or a
! * {@link #Parser(Lexer) Lexer}. In the case of a String,
! * a check is made to see if the first non-whitespace character is a <, in
! * which case it is assumed to be HTML. Otherwise an
* attempt is made to open it as a URL, and if that fails it assumes it is a
! * local disk file. If you want to parse a String after using the
! * {@link #Parser() no-args} constructor, use
! * {@link #setInputHTML setInputHTML()}, or you can use {@link #createParser}.
* <p>The Parser provides access to the contents of the
* page, via a {@link #elements() NodeIterator}, a
|