|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.perf4j.helpers.StopWatchLogIterator
public class StopWatchLogIterator
The StopWatchLogIterator class takes input from a Reader and parses it so that deserialized StopWatch instances can be returned with each call to next(). Log messages that are not recognized as StopWatch calls are just ignored.
| Constructor Summary | |
|---|---|
StopWatchLogIterator(Readable log)
Creates a new StopWatchLogIterator to parse input from the specified Readable instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
protected StopWatchParser |
newStopWatchParser()
This helper method could potentially be overridden to return a different type of StopWatchParser that is used to parse the strings read by this class. |
StopWatch |
next()
|
void |
remove()
Remove is not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StopWatchLogIterator(Readable log)
log - The log containing the data to be parsed.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<StopWatch>public StopWatch next()
next in interface Iterator<StopWatch>public void remove()
remove in interface Iterator<StopWatch>UnsupportedOperationException - Always thrown.protected StopWatchParser newStopWatchParser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||