|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
cx.ath.matthew.io.ExecOutputStream
public class ExecOutputStream
Class to pipe an OutputStream through a command using stdin/stdout. E.g.
Writer w = new OutputStreamWriter(new ExecOutputStream(new FileOutputStream("file"), "command"));
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExecOutputStream(OutputStream os,
Process p)
throws IOException
os - Writes to this OutputStreamp - Filters data through stdin/out on this Process
IOException
public ExecOutputStream(OutputStream os,
String cmd)
throws IOException
os - Writes to this OutputStreamcmd - Creates a Process from this string to filter data through stdin/out
IOException
public ExecOutputStream(OutputStream os,
String[] cmd)
throws IOException
os - Writes to this OutputStreamcmd - Creates a Process from this string array (command, arg, ...) to filter data through stdin/out
IOException
public ExecOutputStream(OutputStream os,
String cmd,
String[] env)
throws IOException
os - Writes to this OutputStreamcmd - Creates a Process from this string to filter data through stdin/outenv - Setup the environment for the command
IOException
public ExecOutputStream(OutputStream os,
String[] cmd,
String[] env)
throws IOException
os - Writes to this OutputStreamcmd - Creates a Process from this string array (command, arg, ...) to filter data through stdin/outenv - Setup the environment for the command
IOException| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class FilterOutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOException
public void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOException
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void finalize()
finalize in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||