|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.exec.FileInputStreamSink
public class FileInputStreamSink
Runnable to read from an InputStream and store the results in a file.
| Constructor Summary | |
|---|---|
FileInputStreamSink(java.lang.String tag,
java.io.InputStream in,
java.io.File outputFile,
boolean append)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOutput()
Return output lines if we are storing output in a string or null if storing to a file. |
void |
run()
Reads from the input stream and stores output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileInputStreamSink(java.lang.String tag,
java.io.InputStream in,
java.io.File outputFile,
boolean append)
throws java.io.FileNotFoundException
tag - A tag for this processor to help with loggingin - InputStream from which we readoutputFile - File in which to store outputappend - If true append output to file, otherwise overwrite
java.io.FileNotFoundException| Method Detail |
|---|
public void run()
run in interface InputStreamSinkrun in interface java.lang.RunnableInputStreamSink.run()public java.lang.String getOutput()
getOutput in interface InputStreamSinkInputStreamSink.getOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||