Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2018-10-27 09:56:07 -04:00
parent 55bb54ca43
commit e2f45c77d9

View File

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