Changeset 29016 for main/trunk
- Timestamp:
- 2014-05-01T20:01:59+12:00 (10 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/FormatConversionDialog.java
r29012 r29016 295 295 * Then the cmdline program exits by printing the result of the conversion. 296 296 * 297 * Explicitly sending EOFs from java is no longer necessary, as the SendStreamGobbler297 * Explicitly sending EOFs from java is no longer necessary, as the OutputStreamGobbler 298 298 * Thread takes care of closing the process stream. 299 299 * … … 330 330 331 331 // send inputstr to process 332 SendStreamGobbler inputGobbler = new SendStreamGobbler(prcs.getOutputStream(), inputstr);332 OutputStreamGobbler inputGobbler = new OutputStreamGobbler(prcs.getOutputStream(), inputstr); 333 333 334 334 // monitor for any error messages 335 ReadStreamGobbler errorGobbler = new ReadStreamGobbler(prcs.getErrorStream(), true);335 InputStreamGobbler errorGobbler = new InputStreamGobbler(prcs.getErrorStream(), true); 336 336 337 337 // monitor for the expected output line(s) 338 ReadStreamGobbler outputGobbler = new ReadStreamGobbler(prcs.getInputStream());338 InputStreamGobbler outputGobbler = new InputStreamGobbler(prcs.getInputStream()); 339 339 340 340 // kick them off … … 947 947 948 948 // http://www.javaworld.com/article/2071275/core-java/when-runtime-exec---won-t.html?page=2 949 class ReadStreamGobbler extends Thread949 class InputStreamGobbler extends Thread 950 950 { 951 951 InputStream is = null; … … 954 954 955 955 956 public ReadStreamGobbler(InputStream is)956 public InputStreamGobbler(InputStream is) 957 957 { 958 958 this.is = is; … … 960 960 } 961 961 962 public ReadStreamGobbler(InputStream is, boolean split_newlines)962 public InputStreamGobbler(InputStream is, boolean split_newlines) 963 963 { 964 964 this.is = is; … … 992 992 } 993 993 994 class SendStreamGobbler extends Thread994 class OutputStreamGobbler extends Thread 995 995 { 996 996 OutputStream os = null; 997 997 String inputstr = ""; 998 998 999 public SendStreamGobbler(OutputStream os, String inputstr)999 public OutputStreamGobbler(OutputStream os, String inputstr) 1000 1000 { 1001 1001 this.os = os; -
main/trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r29012 r29016 444 444 // the workspace needs to be refreshed (Documents in Greenstone Collections) 445 445 446 System.err.print("@@@ User chose to press: ");447 if(result == CANCEL_OPTION) {448 System.err.println("cancel");449 } else {450 System.err.println("ok");451 }452 446 } 453 447 }
Note:
See TracChangeset
for help on using the changeset viewer.