| Package | Description |
|---|---|
| net.thevpc.nuts.toolbox.nsh.jshell.util |
| Modifier and Type | Class and Description |
|---|---|
class |
ProcessWatcher1
Process process = Runtime.getRuntime().exec(new String[]{"/bin/java","-version"}, null, new File("."));
ProcessWatcher w = new ProcessWatcher(process, new ProcessWatcherHandler() {
public void started(Process process) {
System.out.println("Prcess started");
}
public void stdout(Process process, String line) {
System.out.println(line);
}
public void stderr(Process process, String line) {
System.err.println(line);
}
public void ended(Process process, int value) {
System.out.println("Process Shutdown.
|
class |
ProcessWatcher2
Process process = Runtime.getRuntime().exec(new String[]{"/bin/java","-version"}, null, new File("."));
ProcessWatcher w = new ProcessWatcher(process, new ProcessWatcherHandler() {
public void started(Process process) {
System.out.println("Prcess started");
}
public void stdout(Process process, String line) {
System.out.println(line);
}
public void stderr(Process process, String line) {
System.err.println(line);
}
public void ended(Process process, int value) {
System.out.println("Process Shutdown.
|
Copyright © 2022 vpc open source initiative. All rights reserved.