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.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic 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.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.FilterInputStreampublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic void reset()
reset in class java.io.FilterInputStreampublic void finalize()
finalize in class java.lang.Object