public class NamespaceOracle extends ContentProxy
NamespaceEmbedder. startPrefixMapping(String, String) and
endPrefixMapping(String) calls in the stream, but they will
be added by this filter.
| Modifier and Type | Field and Description |
|---|---|
static String |
ns_prefix_xml |
static String |
ns_uri_xml |
protected Stack<Integer> |
prefixLevels
DOC el1 el2
0 1 2
|
protected String |
prefixPrefix |
protected List<String> |
uris |
protected boolean |
useEmptyPrefix |
out| Constructor and Description |
|---|
NamespaceOracle(ContentHandler out) |
NamespaceOracle(ContentHandler out,
boolean useEmptyPrefix) |
NamespaceOracle(ContentHandler out,
boolean useEmptyPrefix,
Collection<String> initialUris) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkUri(String uri) |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
protected String |
makePrefix(int i) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String uri) |
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentpublic static final String ns_uri_xml
public static final String ns_prefix_xml
protected final boolean useEmptyPrefix
protected String prefixPrefix
public NamespaceOracle(ContentHandler out)
public NamespaceOracle(ContentHandler out, boolean useEmptyPrefix)
public NamespaceOracle(ContentHandler out, boolean useEmptyPrefix, Collection<String> initialUris)
protected String makePrefix(int i)
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class ContentProxySAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class ContentProxySAXExceptionprotected void checkUri(String uri)
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class ContentProxypublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerendPrefixMapping in class ContentProxysee also the complete user documentation .