|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.utils.process.StreamPipe
public class StreamPipe
A multi threaded class which pipes the contents of an input stream to an output stream.
Constructor Summary | |
---|---|
StreamPipe(java.io.InputStream input,
java.io.OutputStream output,
java.lang.String tag)
Initializes the stream pipe. |
Method Summary | |
---|---|
java.io.InputStream |
getInput()
Gets the input stream |
java.io.OutputStream |
getOutput()
Gets the output stream. |
void |
run()
|
void |
setInput(java.io.InputStream input)
Sets the input stream |
void |
setOutput(java.io.OutputStream output)
Sets the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamPipe(java.io.InputStream input, java.io.OutputStream output, java.lang.String tag)
input
- the input stream from which to read.
May be null
.output
- the output stream to which to write
May be null
.tag
- a tag which is used for logging the in- and output
May be null
.Method Detail |
---|
public java.io.InputStream getInput()
null
.public void setInput(java.io.InputStream input)
input
- the input stream from which to read. May be
null
.public void setOutput(java.io.OutputStream output)
output
- the output stream to which to write. May be
null
.public java.io.OutputStream getOutput()
null
.public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |