[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexer Lexer.java,1.3,1.4 Page.java,1.7,1.8
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-08-23 17:49:53
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer In directory sc8-pr-cvs1:/tmp/cvs-serv20167/lexer Modified Files: Lexer.java Page.java Log Message: Sixth drop for new i/o subsystem. Isolated htmllexer.jar file and made it compileable and runnable on JDK 1.1 systems. The build.xml file now has four new targets for separate compiling and jaring of the lexer and parser. Significantly refactored the existing Node interface and AbstractNode class to achieve isolation. They now support get/setChildren(), rather than CompositeTag. Various scanners that were directly accessing the childTags node list were affected. The get/setParent is now a generic Node rather than a CompositeTag. The visitor accept() signature was changed to Object to avoid dragging in visitors code. This was *not* changed on classes derived from Tag, although it could be. ChainedException now uses/returns a Vector. Removed the cruft from lexer nodes where possible. Index: Lexer.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Lexer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Lexer.java 23 Aug 2003 01:33:06 -0000 1.3 --- Lexer.java 23 Aug 2003 17:14:44 -0000 1.4 *************** *** 107,111 **** /** * Get the next node from the source. ! * @return A RemarkNode, StringNode or Tag, or <code>null</code> if no * more lexemes are present. * @exception ParserException If there is a problem with the underlying page. --- 107,111 ---- /** * Get the next node from the source. ! * @return A RemarkNode, StringNode or TagNode, or <code>null</code> if no * more lexemes are present. * @exception ParserException If there is a problem with the underlying page. *************** *** 575,578 **** --- 575,580 ---- { System.out.println (pe.getMessage ()); + if (null != pe.getThrowable ()) + System.out.println (pe.getThrowable ().getMessage ()); } } Index: Page.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Page.java 23 Aug 2003 01:33:06 -0000 1.7 --- Page.java 23 Aug 2003 17:14:45 -0000 1.8 *************** *** 110,115 **** catch (UnknownHostException uhe) { ! Random number = new Random (); ! int message = number.nextInt (mFourOhFour.length); throw new ParserException (mFourOhFour[message], uhe); } --- 110,114 ---- catch (UnknownHostException uhe) { ! int message = (int)(Math.random () * mFourOhFour.length); throw new ParserException (mFourOhFour[message], uhe); } |