public abstract class ProxyEmitter extends Emitter
| Modifier and Type | Field and Description |
|---|---|
protected Emitter |
baseEmitter |
protected Properties |
outputProperties |
locator, namePool, outputStream, systemId, writerPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
ProxyEmitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] chars,
int start,
int len)
Character data
|
void |
comment(char[] ch,
int start,
int length)
Output a comment
|
void |
endDocument()
End of document
|
void |
endElement(int nameCode)
End of element
|
void |
processingInstruction(String target,
String data)
Processing Instruction
|
void |
setDocumentLocator(Locator locator)
Set the Document Locator
|
void |
setEscaping(boolean escaping)
Switch escaping on or off.
|
void |
setNamePool(NamePool pool)
Set the name pool to be used for all name codes
|
void |
setOutputProperties(Properties details)
Set the output details.
|
void |
setUnderlyingEmitter(Emitter emitter)
Set the underlying emitter.
|
void |
setUnparsedEntity(String name,
String uri)
Set the URI for an unparsed entity in the document.
|
void |
setWriter(Writer writer)
Set the result destination
|
void |
startDocument()
Start of document
|
void |
startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int nscount)
Start of element
|
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputStream, setSystemId, usesWriterprotected Emitter baseEmitter
protected Properties outputProperties
public void setUnderlyingEmitter(Emitter emitter)
public void setNamePool(NamePool pool)
setNamePool in class Emitterpublic void setWriter(Writer writer)
public void startDocument()
throws TransformerException
startDocument in class EmitterTransformerExceptionpublic void endDocument()
throws TransformerException
endDocument in class EmitterTransformerExceptionpublic void startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int nscount)
throws TransformerException
startElement in class Emitternamespaces - Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount - Number of significant entries within namespaces arrayTransformerExceptionpublic void endElement(int nameCode)
throws TransformerException
endElement in class EmitterTransformerExceptionpublic void characters(char[] chars,
int start,
int len)
throws TransformerException
characters in class EmitterTransformerExceptionpublic void processingInstruction(String target, String data) throws TransformerException
processingInstruction in class EmitterTransformerExceptionpublic void comment(char[] ch,
int start,
int length)
throws TransformerException
comment in class EmitterTransformerExceptionpublic void setEscaping(boolean escaping)
throws TransformerException
setEscaping in class EmitterTransformerExceptionpublic void setOutputProperties(Properties details)
setOutputProperties in class Emitterpublic void setUnparsedEntity(String name, String uri) throws TransformerException
setUnparsedEntity in class EmitterTransformerExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in class Emitter