cx.ath.matthew.io
public class ExecInputStream extends FilterInputStream
Reader r = new InputStreamReader(new ExecInputStream(new FileInputStream("file"), "command"));
| Constructor Summary | |
|---|---|
| ExecInputStream(InputStream is, Process p)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream. | |
| ExecInputStream(InputStream is, String cmd)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream. | |
| ExecInputStream(InputStream is, String[] cmd)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream. | |
| ExecInputStream(InputStream is, String cmd, String[] env)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream. | |
| ExecInputStream(InputStream is, String[] cmd, String[] env)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream. | |
| Method Summary | |
|---|---|
| int | available() |
| void | close() |
| void | finalize() |
| void | flush() |
| void | mark(int readlimit) |
| boolean | markSupported() |
| int | read() |
| int | read(byte[] b) |
| int | read(byte[] b, int off, int len) |
| void | reset() |
| long | skip(long n) |
Parameters: is Reads from this InputStream p Filters data through stdin/out on this Process
Parameters: is Reads from this InputStream cmd Creates a Process from this string to filter data through stdin/out
Parameters: is Reads from this InputStream cmd Creates a Process from this string array (command, arg, ...) to filter data through stdin/out
Parameters: is Reads from this InputStream cmd Creates a Process from this string to filter data through stdin/out env Setup the environment for the command
Parameters: is Reads from this InputStream cmd Creates a Process from this string array (command, arg, ...) to filter data through stdin/out env Setup the environment for the command