Class JSONSerializer

    • Method Detail

      • setOutputProperties

        public void setOutputProperties​(java.util.Properties details)
        Set output properties
        Parameters:
        details - the output serialization properties
      • setPropertySorter

        public void setPropertySorter​(java.util.Comparator<AtomicValue> sorter)
      • getOutputProperties

        public java.util.Properties getOutputProperties()
        Get the output properties
        Specified by:
        getOutputProperties in interface ReceiverWithOutputProperties
        Returns:
        the properties that were set using setOutputProperties
      • setNormalizer

        public void setNormalizer​(Normalizer normalizer)
        Set the Unicode normalizer to be used for normalizing strings.
        Parameters:
        normalizer - the normalizer to be used
      • setCharacterMap

        public void setCharacterMap​(CharacterMap map)
        Set the CharacterMap to be used, if any
        Parameters:
        map - the character map
      • write

        public void write​(Item item)
                   throws XPathException
        Append an arbitrary item (node or atomic value) to the output
        Specified by:
        write in class SequenceWriter
        Parameters:
        item - the item to be appended
        Throws:
        XPathException - if the operation fails