Package org.biojava.bio.program.tagvalue
Class Echo
java.lang.Object
org.biojava.bio.program.tagvalue.Echo
- All Implemented Interfaces:
TagValueListener
A simple listener that just echoes events back to the console.
- Since:
- 1.3
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe current record has ended.voidendTag()End the current tag.voidA new record is about to start.voidStart a new tag.voidvalue(TagValueContext tvc, Object value) A value has been seen.
-
Constructor Details
-
Echo
public Echo()
-
-
Method Details
-
startRecord
Description copied from interface:TagValueListenerA new record is about to start.- Specified by:
startRecordin interfaceTagValueListener
-
endRecord
Description copied from interface:TagValueListenerThe current record has ended.- Specified by:
endRecordin interfaceTagValueListener
-
startTag
Description copied from interface:TagValueListenerStart a new tag.- Specified by:
startTagin interfaceTagValueListener- Parameters:
tag- the Object representing the new tag
-
endTag
Description copied from interface:TagValueListenerEnd the current tag.- Specified by:
endTagin interfaceTagValueListener
-
value
Description copied from interface:TagValueListenerA value has been seen.- Specified by:
valuein interfaceTagValueListener- Parameters:
tvc- a TagValueContext that could be used to push a sub-documentvalue- the value Object observed
-