Package org.biojava.utils.process
Class SimpleInputHandler
- java.lang.Object
-
- org.biojava.utils.process.StreamPipe
-
- org.biojava.utils.process.SimpleInputHandler
-
- All Implemented Interfaces:
Runnable
,InputHandler
public final class SimpleInputHandler extends StreamPipe implements InputHandler
Simple input handler that reads the input for an external process from an input stream. The output stream for the input of the external process is closed after the input stream is read to its end.- Version:
- $Revision$
- Author:
- Martin Szugat
-
-
Constructor Summary
Constructors Constructor Description SimpleInputHandler(InputStream input, String tag)
Initializes the simple input handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
Methods inherited from class org.biojava.utils.process.StreamPipe
getInput, getOutput, setInput, setOutput
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.biojava.utils.process.InputHandler
getOutput, setOutput
-
-
-
-
Constructor Detail
-
SimpleInputHandler
public SimpleInputHandler(InputStream input, String tag)
Initializes the simple input handler.- Parameters:
input
- the input stream from which to read the input for the external process. May benull
.tag
- a tag for logging. May benull
.
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classStreamPipe
-
-