public class JSONSerializer extends SequenceWriter implements ReceiverWithOutputProperties
pipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
JSONSerializer(PipelineConfiguration pipe,
JSONEmitter emitter,
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 |
setPropertySorter(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, usesTypeAnnotationsappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, open, setPipelineConfiguration, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, append, attribute, characters, comment, endDocument, endElement, getPipelineConfiguration, handlesAppend, namespace, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotationsgetSystemIdpublic JSONSerializer(PipelineConfiguration pipe, JSONEmitter emitter, Properties outputProperties) throws XPathException
XPathExceptionpublic void setOutputProperties(Properties details)
details - the output serialization propertiespublic void setPropertySorter(Comparator<AtomicValue> sorter)
public Properties getOutputProperties()
getOutputProperties in interface ReceiverWithOutputPropertiespublic 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 SequenceWriteritem - the item to be appendedXPathException - if the operation failspublic void close()
throws XPathException
close in interface Receiverclose in class SequenceWriterXPathException - if an error occurs