Changeset 13031
- Timestamp:
- 2006-10-06T10:14:21+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/shell/GShell.java
r11308 r13031 157 157 } */ 158 158 159 160 161 // protected boolean got_stream_char(InputStreamReader isr, StringBuffer line_buffer,162 // BufferedOutputStream bos) throws IOException163 // {164 // // Hopefully this doesn't block if the process is trying to write to STDOUT/STDERR.165 166 // boolean input_status = false;167 168 // if(isr.ready()) {169 // input_status = true;170 // int c = isr.read();171 // if(c == '\n' || c == '\r') {172 // if(line_buffer.length() > 0) {173 // String line = line_buffer.toString();174 // DebugStream.println("* " + line + " *");175 // fireMessage(type, typeAsString(type) + "> " + line, status, bos);176 // line = null;177 // line_buffer = new StringBuffer();178 // }179 // }180 // else {181 // line_buffer.append((char)c);182 // }183 // }184 185 // return input_status;186 // }187 188 189 159 protected StringBuffer get_stream_char(InputStreamReader isr, StringBuffer line_buffer, 190 160 BufferedOutputStream bos) throws IOException
Note:
See TracChangeset
for help on using the changeset viewer.