public class Echo extends java.lang.Object implements TagValueListener
A simple listener that just echoes events back to the console.
| Constructor and Description |
|---|
Echo() |
| Modifier and Type | Method and Description |
|---|---|
void |
endRecord()
The current record has ended.
|
void |
endTag()
End the current tag.
|
void |
startRecord()
A new record is about to start.
|
void |
startTag(java.lang.Object tag)
Start a new tag.
|
void |
value(TagValueContext tvc,
java.lang.Object value)
A value has been seen.
|
public void startRecord()
TagValueListenerstartRecord in interface TagValueListenerpublic void endRecord()
TagValueListenerendRecord in interface TagValueListenerpublic void startTag(java.lang.Object tag)
TagValueListenerstartTag in interface TagValueListenertag - the Object representing the new tagpublic void endTag()
TagValueListenerendTag in interface TagValueListenerpublic void value(TagValueContext tvc, java.lang.Object value)
TagValueListenervalue in interface TagValueListenertvc - a TagValueContext that could be used to push a sub-documentvalue - the value Object observed