Class SaxLocatorMapper

java.lang.Object
eu.bandm.tools.util.xml.ContentProxy
eu.bandm.tools.util.xml.SaxLocatorMapper
All Implemented Interfaces:
ContentHandler

public class SaxLocatorMapper extends ContentProxy
Replaces all setDocumentLocator(Locator) SAX calls by an intercepting Locator, which re-maps location info according to the LocationMap,

In SAX, normally a parser invokes this method on the consumer to tell it where to get the location info by active inquiry. This consumer intercepts this call and substitutes a new Locator which prepends the mapping of the locations.