public class StreamPipe extends Object implements Runnable
Constructor and Description |
---|
StreamPipe(InputStream input,
OutputStream output,
String tag)
Initializes the stream pipe.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInput()
Gets the input stream
|
OutputStream |
getOutput()
Gets the output stream.
|
void |
run() |
void |
setInput(InputStream input)
Sets the input stream
|
void |
setOutput(OutputStream output)
Sets the output stream
|
public StreamPipe(InputStream input, OutputStream output, 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
.public InputStream getInput()
null
.public void setInput(InputStream input)
input
- the input stream from which to read. May be
null
.public void setOutput(OutputStream output)
output
- the output stream to which to write. May be
null
.public OutputStream getOutput()
null
.Copyright © 2014 BioJava. All rights reserved.