public class ExecInputStream
extends java.io.FilterInputStream
Reader r = new InputStreamReader(new ExecInputStream(new FileInputStream("file"), "command"));
Constructor and Description |
---|
ExecInputStream(java.io.InputStream is,
java.lang.Process p)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream.
|
ExecInputStream(java.io.InputStream is,
java.lang.String cmd)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream.
|
ExecInputStream(java.io.InputStream is,
java.lang.String[] cmd)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream.
|
ExecInputStream(java.io.InputStream is,
java.lang.String[] cmd,
java.lang.String[] env)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream.
|
ExecInputStream(java.io.InputStream is,
java.lang.String cmd,
java.lang.String[] env)
Create a new ExecInputStream on the given InputStream
using the process to filter the stream.
|
public ExecInputStream(java.io.InputStream is, java.lang.Process p) throws java.io.IOException
is
- Reads from this InputStreamp
- Filters data through stdin/out on this Processjava.io.IOException
public ExecInputStream(java.io.InputStream is, java.lang.String cmd) throws java.io.IOException
is
- Reads from this InputStreamcmd
- Creates a Process from this string to filter data through stdin/outjava.io.IOException
public ExecInputStream(java.io.InputStream is, java.lang.String[] cmd) throws java.io.IOException
is
- Reads from this InputStreamcmd
- Creates a Process from this string array (command, arg, ...) to filter data through stdin/outjava.io.IOException
public ExecInputStream(java.io.InputStream is, java.lang.String cmd, java.lang.String[] env) throws java.io.IOException
is
- Reads from this InputStreamcmd
- Creates a Process from this string to filter data through stdin/outenv
- Setup the environment for the commandjava.io.IOException
public ExecInputStream(java.io.InputStream is, java.lang.String[] cmd, java.lang.String[] env) throws java.io.IOException
is
- Reads from this InputStreamcmd
- Creates a Process from this string array (command, arg, ...) to filter data through stdin/outenv
- Setup the environment for the commandjava.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterInputStream
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.FilterInputStream
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public void reset()
reset
in class java.io.FilterInputStream
public void finalize()
finalize
in class java.lang.Object