|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.util.BuildOutputBuffer
Tracks a "buffer" of lines from a build, which allows a caller to ask all lines after a certain starting line number. Note that the buffer rotates and will only include up to the last maxLines lines written to the buffer.
Constructor Summary | |
BuildOutputBuffer(int maxLines)
|
Method Summary | |
void |
consumeLine(java.lang.String line)
Consumes the line provided by adding it next in the buffer. |
java.lang.String[] |
retrieveLines(int firstLine)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BuildOutputBuffer(int maxLines)
maxLines
- Maximum number of lines that can be placed into the buffer.Method Detail |
public void consumeLine(java.lang.String line)
consumeLine
in interface StreamConsumer
public java.lang.String[] retrieveLines(int firstLine)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |