- Timestamp:
- 2005-08-28T16:58:35+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r10556 r10576 309 309 // Run classinfo on this classifier, and then send the results for parsing. 310 310 try { 311 StringBuffer xml = null; 311 312 if (Gatherer.isGsdlRemote) { 312 313 String launch = Gatherer.cgiBase + "launch"; … … 320 321 URLConnection launch_connection = launch_url.openConnection(); 321 322 input_stream = launch_connection.getInputStream(); 323 xml = Utility.readXMLStream(input_stream); 322 324 } 323 325 else { … … 351 353 352 354 input_stream = process.getErrorStream(); 353 }354 355 StringBuffer xml = Utility.readXMLStream(input_stream); 355 xml = Utility.readXMLStream(input_stream); 356 } 357 356 358 document = CollectionDesignManager.XMLStringToDOM(xml,classifier); 357 359 } … … 398 400 URLConnection launch_connection = launch_url.openConnection(); 399 401 InputStream input_stream = launch_connection.getInputStream(); 400 loadClassifiers(input_stream); 402 StringBuffer xml = Utility.readXMLStream(input_stream); 403 loadClassifiers(xml); 401 404 } 402 405 catch (Exception error) { … … 437 440 * @param input_stream An <strong>InputStream</strong> indicating the where list of classifiers -- encoded in XML -- can be read from 438 441 */ 439 private void loadClassifiers( InputStream input_stream)442 private void loadClassifiers(StringBuffer xml) 440 443 { 441 StringBuffer xml = Utility.readXMLStream(input_stream);442 444 Document document = CollectionDesignManager.XMLStringToDOM(xml, "-listall"); 443 445
Note:
See TracChangeset
for help on using the changeset viewer.