Package org.biojava.utils.process
Class ReaderWriterPipe
java.lang.Object
org.biojava.utils.process.ReaderWriterPipe
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ReaderInputHandler
,WriterOutputHandler
A multi threaded class
which pipes the contents of an input reader to an output
writer.
- Version:
- $Revision$
- Author:
- Martin Szugat
-
Constructor Summary
ConstructorsConstructorDescriptionReaderWriterPipe
(Reader reader, Writer writer, String tag) Initializes the reader writer pipe. -
Method Summary
-
Constructor Details
-
ReaderWriterPipe
Initializes the reader writer pipe.- Parameters:
reader
- the reader from which to read. May benull
.writer
- the writer to which to write. May benull
.tag
- a tag for loggging. May benull
.
-
-
Method Details
-
getReader
Gets the reader.- Returns:
- the reader from which to read. May be
null
.
-
getWriter
Gets the writer.- Returns:
- the writer to which to write. May be
null
.
-
setReader
Sets the reader.- Parameters:
reader
- the reader from which to read. May benull
.
-
setWriter
Sets the writer.- Parameters:
writer
- the writer to which to write. May benull
.
-
run
-