|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
gov.nih.nci.cagrid.testing.system.haste.io.ReportLineCollector
public class ReportLineCollector
ReportLineCollector acts as a special filter on an InputStream,
which removes lines beginning with REPORTLINE_PREFIX
from the main stream of data and buffers such lines for later,
all-at-once access.
| Constructor Summary | |
|---|---|
ReportLineCollector(java.io.InputStream in)
Make a new ReportLineCollector that filters (and collects) lines of text that match a certain special reporting patterns. |
|
| Method Summary | |
|---|---|
int |
available()
How many bytes can be read without having to block |
java.lang.String |
getReportLines()
Return the contents of the report buffer. |
int |
read()
Conform to InputStream interface. |
void |
run()
Read lines from the incoming data stream, determine if they should be filtered and stored or just passed along, and write the unfiltered lines into the write-end of the pipe. |
| Methods inherited from class java.io.InputStream |
|---|
close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportLineCollector(java.io.InputStream in)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic java.lang.String getReportLines()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||