- Timestamp:
- 2017-07-05T20:43:44+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java
r22692 r31776 44 44 import org.greenstone.gatherer.util.UnzipTools; 45 45 import org.greenstone.gatherer.util.Utility; 46 import org.greenstone.gatherer.util.XMLTools; 46 47 import org.apache.commons.httpclient.HttpClient; 47 48 import org.apache.commons.httpclient.methods.PostMethod; … … 682 683 gliserver_in.close(); 683 684 685 686 int startIndex = command_output_buffer.indexOf("<?xml"); 687 if(startIndex > 0) { // not -1, so "<?xml" is present, and not 0, so not at start 688 689 // iff dealing with XML, make sure to parse out any lines preceding the XML content 690 command_output_buffer = XMLTools.readXMLStream(command_output_buffer.toString()); 691 /*if(DebugStream.isDebuggingEnabled()) { 692 String prefix = command_output_buffer.substring(0, startIndex); 693 DebugStream.println("Removing the following found before start of XML:"); 694 DebugStream.println("---------------------------------"); 695 DebugStream.println(prefix); 696 DebugStream.println("---------------------------------"); 697 } 698 // remove the prefix 699 return command_output_buffer.substring(startIndex); // remove anything before the start of XML 700 */ 701 } 702 684 703 return command_output_buffer.toString(); 685 704 }
Note:
See TracChangeset
for help on using the changeset viewer.