public class JSONEmitter extends SequenceWriter
pipelineConfiguration, previousAtomic, systemId
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
JSONEmitter(PipelineConfiguration pipe,
StreamResult result,
Properties outputProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End of the document.
|
Properties |
getOutputProperties()
Get the output properties
|
void |
setCharacterMap(CharacterMap map)
Set the CharacterMap to be used, if any
|
void |
setNormalizer(Normalizer normalizer)
Set the Unicode normalizer to be used for normalizing strings.
|
void |
setOutputProperties(Properties details)
Set output properties
|
void |
write(Item item)
Append an arbitrary item (node or atomic value) to the output
|
append, attribute, characters, comment, endDocument, endElement, getTreeModel, namespace, processingInstruction, setTreeModel, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations
append, getConfiguration, getNamePool, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver, open, setPipelineConfiguration, setSystemId
public JSONEmitter(PipelineConfiguration pipe, StreamResult result, Properties outputProperties) throws XPathException
XPathException
public void setOutputProperties(Properties details) throws XPathException
details
- the output serialization propertiesXPathException
- if an error occurs finding the encoding propertypublic Properties getOutputProperties()
public void setNormalizer(Normalizer normalizer)
normalizer
- the normalizer to be usedpublic void setCharacterMap(CharacterMap map)
map
- the character mappublic void write(Item item) throws XPathException
write
in class SequenceWriter
item
- the item to be appendedXPathException
- if the operation failspublic void close() throws XPathException
close
in interface Receiver
close
in class SequenceWriter
XPathException
- if an error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.