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 ContentHandlercharacters in class ContentProxySAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ContentProxySAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class ContentProxySAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class ContentProxySAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int end)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class ContentProxySAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class ContentProxySAXExceptionpublic void setDocumentLocator(Locator loc)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class ContentProxypublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class ContentProxySAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class ContentProxySAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class ContentProxySAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class ContentProxySAXExceptionsee also the complete user documentation .