Executor.java revision 7a147aeccd50900dc20ead611c17ab5728a1a6a6
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/**
* Wrapper to Java Process API
*
* @author Emilio Monti - emilmont@gmail.com
*/
public class Executor {
private File workingDirectory;
}
this.workingDirectory = workingDirectory;
}
public void exec() {
if (workingDirectory != null) {
}
try {
} catch (IOException e) {
} catch (InterruptedException e) {
} finally {
try {
}
} catch (IllegalThreadStateException e) {
}
}
}
public String get_stdout() {
return stdoutString;
}
public BufferedReader get_stdout_reader() {
}
public String get_stderr() {
return stderrString;
}
public BufferedReader get_stderr_reader() {
}
private static class StringPipe extends Thread {
this.start();
}
public void run() {
try {
int byteIn;
}
} catch (IOException ioe) {
"Error during process pipe listening", ioe);
}
}
return output;
}
}
}