public class JSONEmitter extends SequenceWriter
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
JSONEmitter(PipelineConfiguration pipe,
javax.xml.transform.stream.StreamResult result,
java.util.Properties outputProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End of the document.
|
java.util.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(java.util.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, javax.xml.transform.stream.StreamResult result, java.util.Properties outputProperties) throws XPathException
XPathException
public void setOutputProperties(java.util.Properties details) throws XPathException
details
- the output serialization propertiesXPathException
- if an error occurs finding the encoding propertypublic java.util.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-2018 Saxonica Limited. All rights reserved.