public class MessageWarner extends XMLEmitter
The text of the message that is sent to the ErrorListener is an XML serialization of the actual message content.
attSpecials, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces, unfailing
allCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writer
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
MessageWarner() |
Modifier and Type | Method and Description |
---|---|
void |
close()
End of the document.
|
void |
endDocument()
Notify the end of a document node
|
void |
processingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
Handle a processing instruction.
|
void |
startDocument(int properties)
Start of a document node.
|
attribute, characters, closeStartTag, comment, convertToAscii, emptyElementTagCloser, endElement, getAttributeIndentString, isStarted, namespace, open, openDocument, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEscape
append, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriter
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver, setPipelineConfiguration, setSystemId
public void startDocument(int properties) throws XPathException
XMLEmitter
startDocument
in interface Receiver
startDocument
in class XMLEmitter
properties
- bit-significant integer indicating properties of the document node.
The definitions of the bits are in class ReceiverOptions
XPathException
- if an error occurspublic void processingInstruction(java.lang.String target, java.lang.CharSequence data, Location locationId, int properties) throws XPathException
XMLEmitter
processingInstruction
in interface Receiver
processingInstruction
in class XMLEmitter
target
- The PI name. This must be a legal name (it will not be checked).data
- The data portion of the processing instructionlocationId
- provides information such as line number and system ID.properties
- Additional information about the PI.XPathException
- if an error occurspublic void endDocument() throws XPathException
XMLEmitter
endDocument
in interface Receiver
endDocument
in class XMLEmitter
XPathException
- if an error occurspublic void close()
XMLEmitter
close
in interface Receiver
close
in class XMLEmitter
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.