Class ErrorEmitter
java.lang.Object
com.icl.saxon.output.Emitter
com.icl.saxon.output.ErrorEmitter
- All Implemented Interfaces:
Result
ErrorEmitter is an Emitter that generates an error message if any attempt
is made to produce output. It is used while a saxon:function is active to
prevent functions writing to the result tree.
-
Field Summary
Fields inherited from class Emitter
locator, namePool, outputProperties, outputStream, systemId, writerFields inherited from interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Character data.voidcomment(char[] ch, int start, int length) Handle a comment.voidEnd of the document.voidendElement(int name) End of an element.voidprocessingInstruction(String target, String data) Handle a processing instruction.voidStart of the document.voidstartElement(int name, Attributes attributes, int[] namespaces, int nscount) Start of an element.Methods inherited from class Emitter
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setDocumentLocator, setEscaping, setNamePool, setOutputProperties, setOutputStream, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
Constructor Details
-
ErrorEmitter
public ErrorEmitter()
-
-
Method Details
-
startDocument
Start of the document.- Specified by:
startDocumentin classEmitter- Throws:
TransformerException
-
endDocument
End of the document.- Specified by:
endDocumentin classEmitter- Throws:
TransformerException
-
startElement
public void startElement(int name, Attributes attributes, int[] namespaces, int nscount) throws TransformerException Start of an element. Output the start tag, escaping special characters.- Specified by:
startElementin classEmitter- Parameters:
namespaces- Array of namespace codes identifying the namespace prefix/uri pairs associated with this elementnscount- Number of significant entries within namespaces array- Throws:
TransformerException
-
endElement
End of an element.- Specified by:
endElementin classEmitter- Throws:
TransformerException
-
characters
Character data.- Specified by:
charactersin classEmitter- Throws:
TransformerException
-
processingInstruction
Handle a processing instruction.- Specified by:
processingInstructionin classEmitter- Throws:
TransformerException
-
comment
Handle a comment.- Specified by:
commentin classEmitter- Throws:
TransformerException
-