Class OutputCollector
java.lang.Object
org.fife.rsta.ac.OutputCollector
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
PerlOutputCollector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.OutputCollector(InputStream in, boolean collect) Constructor.OutputCollector(InputStream in, StringBuilder sb) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the output collected from the stream.protected voidhandleLineRead(String line) Called every time a line is read from the stream.voidrun()
-
Field Details
-
in
-
sb
-
-
Constructor Details
-
OutputCollector
-
OutputCollector
Constructor.- Parameters:
in- The input stream.sb- The buffer in which to collect the output.
-
OutputCollector
Constructor.- Parameters:
in- The input stream.collect- Whether to actually collect the output in a buffer. If this isfalse, thengetOutput()will returnnull. This parameter can be used if you want to eat, but ignore, stdout or stderr for a process.
-
-
Method Details
-
getOutput
-
handleLineRead
Called every time a line is read from the stream. This allows subclasses to handle lines differently. They can also call into the super implementation if they want to log the lines into the buffer.- Parameters:
line- The line read.
-
run
-