public class DocumentHandlerProxy extends Emitter
Modifier and Type | Field and Description |
---|---|
protected DocumentHandler |
handler |
protected AttributeListImpl |
outputAtts |
locator, namePool, outputProperties, outputStream, systemId, writer
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
DocumentHandlerProxy() |
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 Document Locator
|
void |
setUnderlyingDocumentHandler(DocumentHandler handler)
Set the underlying document handler.
|
void |
startDocument()
Start of document
|
void |
startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int nscount)
Start of element
|
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriter
protected DocumentHandler handler
protected AttributeListImpl outputAtts
public void setUnderlyingDocumentHandler(DocumentHandler handler)
public void setDocumentLocator(Locator locator)
setDocumentLocator
in class Emitter
public void startDocument() throws TransformerException
startDocument
in class Emitter
TransformerException
public void endDocument() throws TransformerException
endDocument
in class Emitter
TransformerException
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException
startElement
in class Emitter
namespaces
- Array of namespace codes identifying the namespace prefix/uri
pairs associated with this elementnscount
- Number of significant entries within namespaces arrayTransformerException
public void endElement(int nameCode) throws TransformerException
endElement
in class Emitter
TransformerException
public void characters(char[] chars, int start, int len) throws TransformerException
characters
in class Emitter
TransformerException
public void processingInstruction(String target, String data) throws TransformerException
processingInstruction
in class Emitter
TransformerException