public class Echo extends 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(Object tag)
Start a new tag.
|
void |
value(TagValueContext tvc,
Object value)
A value has been seen.
|
public Echo()
public void startRecord()
TagValueListener
startRecord
in interface TagValueListener
public void endRecord()
TagValueListener
endRecord
in interface TagValueListener
public void startTag(Object tag)
TagValueListener
startTag
in interface TagValueListener
tag
- the Object representing the new tagpublic void endTag()
TagValueListener
endTag
in interface TagValueListener
public void value(TagValueContext tvc, Object value)
TagValueListener
value
in interface TagValueListener
tvc
- a TagValueContext that could be used to push a sub-documentvalue
- the value Object observedCopyright © 2020 BioJava. All rights reserved.