public class JSONWriter
extends java.lang.Object
Constructor and Description |
---|
JSONWriter(PipelineConfiguration pipe,
javax.xml.transform.stream.StreamResult result,
java.util.Properties outputProperties) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End of the document.
|
void |
endArray() |
void |
endMap() |
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 |
startArray() |
void |
startMap() |
void |
writeAtomicValue(AtomicValue item)
Append an arbitrary item (node or atomic value) to the output
|
void |
writeKey(java.lang.String key) |
public JSONWriter(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 writeKey(java.lang.String key) throws XPathException
XPathException
public void writeAtomicValue(AtomicValue item) throws XPathException
item
- the atomic value to be appended, or null to append "null"XPathException
- if the operation failspublic void startArray() throws XPathException
XPathException
public void endArray() throws XPathException
XPathException
public void startMap() throws XPathException
XPathException
public void endMap() throws XPathException
XPathException
public void close() throws XPathException
XPathException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.