public class NamespaceEmitter extends ProxyEmitter
Modifier and Type | Field and Description |
---|---|
protected NamePool |
namePool |
protected int |
nscodeNull |
protected int |
nscodeXML |
baseEmitter, outputProperties
locator, outputStream, systemId, writer
Constructor and Description |
---|
NamespaceEmitter() |
Modifier and Type | Method and Description |
---|---|
void |
endElement(int nameCode)
endElement: Discard the namespaces declared on this element.
|
void |
setNamePool(NamePool pool)
Set the name pool to be used for all name codes
|
void |
startElement(int nameCode,
org.xml.sax.Attributes attList,
int[] namespaceCodes,
int nrOfCodes)
startElement.
|
characters, comment, endDocument, processingInstruction, setDocumentLocator, setEscaping, setOutputProperties, setUnderlyingEmitter, setUnparsedEntity, setWriter, startDocument
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriter
protected NamePool namePool
protected int nscodeXML
protected int nscodeNull
public void setNamePool(NamePool pool)
setNamePool
in class ProxyEmitter
public void startElement(int nameCode, org.xml.sax.Attributes attList, int[] namespaceCodes, int nrOfCodes) throws javax.xml.transform.TransformerException
startElement
in class ProxyEmitter
namespaceCodes
- Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnrOfCodes
- Number of significant entries within namespaces arrayjavax.xml.transform.TransformerException
public void endElement(int nameCode) throws javax.xml.transform.TransformerException
endElement
in class ProxyEmitter
javax.xml.transform.TransformerException