public class SaxLocatorMapper extends ContentProxy
set locator()
SAX calls by an intercepting Locator
,
which re-maps location info according to the LocationMap
Modifier and Type | Field and Description |
---|---|
protected Locator |
newlocs |
static int |
NO_NUMBER_AVAILABLE |
static String |
NO_PUB_ID_AVAILABLE |
static String |
NO_SYS_ID_AVAILABLE |
out
Constructor and Description |
---|
SaxLocatorMapper(LocationMap<XMLDocumentIdentifier,XMLDocumentIdentifier> map,
ContentHandler out) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int end) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int end) |
protected void |
invalidate() |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator loc) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String uri) |
protected void |
updateCache() |
public static final int NO_NUMBER_AVAILABLE
public static final String NO_SYS_ID_AVAILABLE
public static final String NO_PUB_ID_AVAILABLE
protected final Locator newlocs
public SaxLocatorMapper(LocationMap<XMLDocumentIdentifier,XMLDocumentIdentifier> map, ContentHandler out)
protected void invalidate()
protected void updateCache()
public void characters(char[] ch, int start, int end) throws SAXException
characters
in interface ContentHandler
characters
in class ContentProxy
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class ContentProxy
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class ContentProxy
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class ContentProxy
SAXException
public void ignorableWhitespace(char[] ch, int start, int end) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class ContentProxy
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class ContentProxy
SAXException
public void setDocumentLocator(Locator loc)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class ContentProxy
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class ContentProxy
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class ContentProxy
SAXException
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class ContentProxy
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class ContentProxy
SAXException
see also the complete user documentation .