public abstract class TAMEResponseReader
extends java.lang.Object
Constructor and Description |
---|
TAMEResponseReader(TAMEResponse response)
TAME response reader.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
handleCue(Cue cue)
Handles a cue.
|
protected void |
handleStop()
Called when the reader stops reading cues.
|
boolean |
hasMoreCues()
Gets if this has more cues to read from the response.
|
boolean |
read()
Reads the response cues, caliing the
handleCue(Cue) method for
each cue in the response. |
public TAMEResponseReader(TAMEResponse response)
response
- the response that will be read by this.public abstract boolean handleCue(Cue cue)
cue
- the cue to handle.protected void handleStop()
public final boolean hasMoreCues()
public boolean read()
handleCue(Cue)
method for
each cue in the response. This stops when handleCue(Cue)
returns false,
or when there are no more cues to read.
After this stops reading for whatever reason, this calls handleStop()
.