locator, namePool, outputProperties, outputStream, systemId, writerPI_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, usesWriterprotected StringEmitter(StringBuffer buffer)
public void startDocument()
throws TransformerException
startDocument in class EmitterTransformerExceptionpublic void endDocument()
throws TransformerException
endDocument in class EmitterTransformerExceptionpublic void characters(char[] ch,
int start,
int length)
throws TransformerException
characters in class Emitterch - 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 Emittername - The element name (tag)TransformerExceptionpublic void endElement(int nameCode)
throws TransformerException
endElement in class Emittername - The element name (tag)TransformerExceptionpublic void processingInstruction(String name, String value) throws TransformerException
processingInstruction in class EmitterTransformerExceptionpublic void comment(char[] ch,
int start,
int length)
throws TransformerException
comment in class EmitterTransformerException