|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
cx.ath.matthew.io.ExecInputStream
public class ExecInputStream
Class to pipe an InputStream through a command using stdin/stdout. E.g.
Reader r = new InputStreamReader(new ExecInputStream(new FileInputStream("file"), "command"));
| Field Summary |
|---|
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Constructor Summary | |
|---|---|
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. |
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 Process
java.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/out
java.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/out
java.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 command
java.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 command
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.FilterInputStreamjava.io.IOException
public void flush()
throws java.io.IOException
java.io.IOException
public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||