public class TagRenamer extends SimpleTagValueWrapper
Rename tags using a TagMapper.
This will rename tags as they stream into this listener using a TagMapper. Once renamed, the events will be forwarded onto a delegate TagValueListener for further processing.
| Constructor and Description |
|---|
TagRenamer(TagValueListener delegate,
PropertyChanger mapper)
Build a new TagRenamer with a delegate and mapper.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyChanger |
getMapper()
Retrieve the mapper used to rename tags
|
void |
startTag(java.lang.Object tag)
Start a new tag.
|
endRecord, endTag, getDelegate, setDelegate, startRecord, valuepublic TagRenamer(TagValueListener delegate, PropertyChanger mapper)
delegate - TagValueListener to pass mapped events ontomapper - TagMapper used to rename tagspublic PropertyChanger getMapper()
public void startTag(java.lang.Object tag)
throws ParserException
TagValueListenerstartTag in interface TagValueListenerstartTag in class SimpleTagValueWrappertag - the Object representing the new tagParserException - if the tag could not be started