cx.ath.matthew.io
public class ExecOutputStream extends FilterOutputStream
Writer w = new OutputStreamWriter(new ExecOutputStream(new FileOutputStream("file"), "command"));
| Constructor Summary | |
|---|---|
| ExecOutputStream(OutputStream os, Process p)
Create a new ExecOutputStream on the given OutputStream
using the process to filter the stream. | |
| ExecOutputStream(OutputStream os, String cmd)
Create a new ExecOutputStream on the given OutputStream
using the process to filter the stream. | |
| ExecOutputStream(OutputStream os, String[] cmd)
Create a new ExecOutputStream on the given OutputStream
using the process to filter the stream. | |
| ExecOutputStream(OutputStream os, String cmd, String[] env)
Create a new ExecOutputStream on the given OutputStream
using the process to filter the stream. | |
| ExecOutputStream(OutputStream os, String[] cmd, String[] env)
Create a new ExecOutputStream on the given OutputStream
using the process to filter the stream. | |
| Method Summary | |
|---|---|
| void | close() |
| void | finalize() |
| void | flush() |
| void | write(byte[] b) |
| void | write(byte[] b, int off, int len) |
| void | write(int b) |
Parameters: os Writes to this OutputStream p Filters data through stdin/out on this Process
Parameters: os Writes to this OutputStream cmd Creates a Process from this string to filter data through stdin/out
Parameters: os Writes to this OutputStream cmd Creates a Process from this string array (command, arg, ...) to filter data through stdin/out
Parameters: os Writes to this OutputStream cmd Creates a Process from this string to filter data through stdin/out env Setup the environment for the command
Parameters: os Writes to this OutputStream cmd Creates a Process from this string array (command, arg, ...) to filter data through stdin/out env Setup the environment for the command