[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexerapplications/tabby Tabby.java,1.2,1.3
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2005-03-13 14:51:54
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/tabby In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16205/lexerapplications/tabby Modified Files: Tabby.java Log Message: Bug #1121401 No Parsing with yahoo! By default nio.charset.CharsetDecoder replaces characters it cannot represent in the current encoding with zero, which was the value returned by the page when the Stream reached EOF. This changes the Page return value to (char)Source.EOF (-1) when the end of stream is encountered. Index: Tabby.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/tabby/Tabby.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Tabby.java 31 Jul 2004 16:42:34 -0000 1.2 --- Tabby.java 13 Mar 2005 14:51:44 -0000 1.3 *************** *** 143,147 **** expected = 0; last = -1; ! while (0 != (ch = page.getCharacter (cursor))) { if (++expected != cursor.getPosition ()) --- 143,147 ---- expected = 0; last = -1; ! while (Page.EOF != (ch = page.getCharacter (cursor))) { if (++expected != cursor.getPosition ()) *************** *** 296,299 **** --- 296,307 ---- * * $Log$ + * Revision 1.3 2005/03/13 14:51:44 derrickoswald + * Bug #1121401 No Parsing with yahoo! + * By default nio.charset.CharsetDecoder replaces characters it cannot + * represent in the current encoding with zero, which was the value + * returned by the page when the Stream reached EOF. + * This changes the Page return value to (char)Source.EOF (-1) when + * the end of stream is encountered. + * * Revision 1.2 2004/07/31 16:42:34 derrickoswald * Remove unused variables and other fixes exposed by turning on compiler warnings. |