@@ -48,6 +48,8 @@ import net.bigeon.gclc.manager.ConsoleOutput;
|
||||
* This class is useful for processes that run in a different environment than
|
||||
* the application but return an output. Such processes include command
|
||||
* processes and socket communications for example.
|
||||
* <p>
|
||||
* In the current library is is used to retrieve a system command output.
|
||||
*
|
||||
* @author Emmanuel Bigeon */
|
||||
public final class ForwardingRunnable implements Runnable {
|
||||
@@ -95,7 +97,7 @@ public final class ForwardingRunnable implements Runnable {
|
||||
int c;
|
||||
try {
|
||||
while ((c = is.read()) >= 0) {
|
||||
// Print the chaeacter in the output
|
||||
// Print the character in the output
|
||||
printCharacter(out, (char) c);
|
||||
}
|
||||
} catch (final IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user