locator, namePool, outputProperties, outputStream, systemId, writer
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Modifier | Constructor and Description |
---|---|
protected |
StringEmitter(StringBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Produce output using the current Writer.
|
void |
comment(char[] ch,
int start,
int length)
Output a comment.
|
void |
endDocument()
End of the document.
|
void |
endElement(int nameCode)
Output an element end tag.
|
void |
processingInstruction(String name,
String value)
Output a processing instruction.
|
void |
startDocument()
Start of the document.
|
void |
startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int nscount)
Output an element start tag.
|
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriter
protected StringEmitter(StringBuffer buffer)
public void startDocument() throws TransformerException
startDocument
in class Emitter
TransformerException
public void endDocument() throws TransformerException
endDocument
in class Emitter
TransformerException
public void characters(char[] ch, int start, int length) throws TransformerException
characters
in class Emitter
ch
- Character array to be outputstart
- start position of characters to be outputlength
- number of characters to be outputTransformerException
- for any failurepublic void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException
startElement
in class Emitter
name
- The element name (tag)TransformerException
public void endElement(int nameCode) throws TransformerException
endElement
in class Emitter
name
- The element name (tag)TransformerException
public void processingInstruction(String name, String value) throws TransformerException
processingInstruction
in class Emitter
TransformerException
public void comment(char[] ch, int start, int length) throws TransformerException
comment
in class Emitter
TransformerException