[Carrot2-cvs] carrot2/components/inputs/snippet-reader/src/org/put/snippetreader/readers WebSnippetR
Brought to you by:
dawidweiss,
stachoo
From: <daw...@us...> - 2004-01-19 21:30:37
|
Update of /cvsroot/carrot2/carrot2/components/inputs/snippet-reader/src/org/put/snippetreader/readers In directory sc8-pr-cvs1:/tmp/cvs-serv1914/src/org/put/snippetreader/readers Modified Files: WebSnippetReader.java Log Message: [refactor] removed some old sources from Pawel Index: WebSnippetReader.java =================================================================== RCS file: /cvsroot/carrot2/carrot2/components/inputs/snippet-reader/src/org/put/snippetreader/readers/WebSnippetReader.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebSnippetReader.java 30 Sep 2003 11:35:47 -0000 1.2 --- WebSnippetReader.java 19 Jan 2004 21:30:34 -0000 1.3 *************** *** 341,345 **** ); ! final byte [] fullInput = FileHelper.readFullyAndCloseInput(is); final String fullInputString = new String( fullInput, --- 341,353 ---- ); ! byte [] fullInput; ! ! if (is == null) { ! fullInput = reader.getFirstResultsPage(query, 80, encoding, JDOMHelper.getElement( ! "/service/response/pageinfo", config)); ! } else { ! fullInput = FileHelper.readFullyAndCloseInput(is); ! } ! final String fullInputString = new String( fullInput, *************** *** 505,515 **** } ! InputStream is = reader.getQueryResults( ! query, 80, encoding, JDOMHelper.getElement( ! "/service/response/pageinfo", config ! ) ! ); ! fullInput = FileHelper.readFullyAndCloseInput(is); stream.append( --- 513,536 ---- } ! InputStream is = null; ! ! try ! { ! is = reader.getQueryResults( ! query, 80, encoding, JDOMHelper.getElement( ! "/service/response/pageinfo", config ! ) ! ); ! } ! catch (Exception e1) ! { ! } ! if (is == null) { ! fullInput = reader.getFirstResultsPage(query, 80, encoding, JDOMHelper.getElement( ! "/service/response/pageinfo", config)); ! } else { ! fullInput = FileHelper.readFullyAndCloseInput(is); ! } stream.append( |