|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.exec.StringInputStreamSink
public class StringInputStreamSink
Runnable to read from an InputStream until exhausted or the character limit is exceeded and store results in a String.
| Constructor Summary | |
|---|---|
StringInputStreamSink(java.lang.String tag,
java.io.InputStream in,
int maxChars)
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 StringInputStreamSink(java.lang.String tag,
java.io.InputStream in,
int maxChars)
tag - A tag for this processor to help with loggingin - InputStream from which we readmaxChars - Maximum number of characters to read (0 = MAX_CHARS)| 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 | |||||||||