Project

General

Profile

« Previous | Next » 

Revision 5463

do not read from the inputstream before passing it off to the SAXParser

View differences:

src/edu/ucsb/nceas/metacat/harvesterClient/HarvestSiteSchedule.java
337 337
                            null,
338 338
                            "");
339 339
      inputStreamReader = new InputStreamReader(inputStream);
340
      char[] harvestListChars = new char[1024];
341
      inputStreamReader.read(harvestListChars, 0, 1024);
342
      System.out.println("documentListURL: " + documentListURL);
343
      String encoding = inputStreamReader.getEncoding();
344
      System.out.println("encoding: " + encoding);
345
      String harvestListStr = new String(harvestListChars);
346
      System.out.println("harvestListStr:\n" + harvestListStr);
340
//      char[] harvestListChars = new char[1024];
341
//      inputStreamReader.read(harvestListChars, 0, 1024);
342
//      System.out.println("documentListURL: " + documentListURL);
343
//      String encoding = inputStreamReader.getEncoding();
344
//      System.out.println("encoding: " + encoding);
345
//      String harvestListStr = new String(harvestListChars);
346
//      System.out.println("harvestListStr:\n" + harvestListStr);
347 347
      documentListHandler.runParser(inputStreamReader, schemaLocation);
348 348
      harvester.addLogEntry(0,
349 349
                            "Validated: " + documentListURL,

Also available in: Unified diff