Package com.icl.saxon.output
Class ErrorEmitter
- java.lang.Object
-
- com.icl.saxon.output.Emitter
-
- com.icl.saxon.output.ErrorEmitter
-
-
Field Summary
-
Fields inherited from class com.icl.saxon.output.Emitter
locator, namePool, outputProperties, outputStream, systemId, writer
-
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
-
Constructor Summary
Constructors Constructor Description ErrorEmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Character data.voidcomment(char[] ch, int start, int length)Handle a comment.voidendDocument()End of the document.voidendElement(int name)End of an element.voidprocessingInstruction(String target, String data)Handle a processing instruction.voidstartDocument()Start of the document.voidstartElement(int name, Attributes attributes, int[] namespaces, int nscount)Start of an element.-
Methods inherited from class com.icl.saxon.output.Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
-
-
-
Method Detail
-
startDocument
public void startDocument() throws TransformerExceptionStart of the document.- Specified by:
startDocumentin classEmitter- Throws:
TransformerException
-
endDocument
public void endDocument() throws TransformerExceptionEnd of the document.- Specified by:
endDocumentin classEmitter- Throws:
TransformerException
-
startElement
public void startElement(int name, Attributes attributes, int[] namespaces, int nscount) throws TransformerExceptionStart of an element. Output the start tag, escaping special characters.- Specified by:
startElementin classEmitternamespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
public void endElement(int name) throws TransformerExceptionEnd of an element.- Specified by:
endElementin classEmitter- Throws:
TransformerException
-
characters
public void characters(char[] ch, int start, int length) throws TransformerExceptionCharacter data.- Specified by:
charactersin classEmitter- Throws:
TransformerException
-
processingInstruction
public void processingInstruction(String target, String data) throws TransformerException
Handle a processing instruction.- Specified by:
processingInstructionin classEmitter- Throws:
TransformerException
-
comment
public void comment(char[] ch, int start, int length) throws TransformerExceptionHandle a comment.- Specified by:
commentin classEmitter- Throws:
TransformerException
-
-