public class JSONSerializer extends SequenceWriter implements ReceiverWithOutputProperties
pipelineConfiguration, previousAtomic, systemId
Constructor and Description |
---|
JSONSerializer(PipelineConfiguration pipe,
JSONEmitter emitter,
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 |
setPropertySorter(java.util.Comparator<AtomicValue> sorter) |
void |
write(Item item)
Append an arbitrary item (node or atomic value) to the output
|
append, attribute, bulkCopyElementNode, characters, comment, endDocument, endElement, getTreeModel, graftElementNode, isReadyForBulkCopy, isReadyForGrafting, namespace, processingInstruction, setTreeModel, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, attribute, characters, comment, endDocument, endElement, getPipelineConfiguration, handlesAppend, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations
public JSONSerializer(PipelineConfiguration pipe, JSONEmitter emitter, java.util.Properties outputProperties) throws XPathException
XPathException
public void setOutputProperties(java.util.Properties details)
details
- the output serialization propertiespublic void setPropertySorter(java.util.Comparator<AtomicValue> sorter)
public java.util.Properties getOutputProperties()
getOutputProperties
in interface ReceiverWithOutputProperties
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-2020 Saxonica Limited. All rights reserved.