Class JsonMetaDataSerializer


  • public class JsonMetaDataSerializer
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void toJSON​(XMLizable object, com.fasterxml.jackson.core.JsonGenerator jg, boolean isFormattedOutput)
      Serialize use a specific instance of a JsonGenerator which encapsulates where the output goes
      static void toJSON​(XMLizable object, java.io.File file)  
      static void toJSON​(XMLizable object, java.io.File file, boolean isFormattedOutput)  
      static void toJSON​(XMLizable object, java.io.OutputStream aOutputStream)
      Writes out this object's JSON representation.
      static void toJSON​(XMLizable object, java.io.OutputStream aOutputStream, boolean isFormattedOutput)  
      static void toJSON​(XMLizable object, java.io.Writer aWriter)
      Serialize to a writer
      static void toJSON​(XMLizable object, java.io.Writer aWriter, boolean isFormattedOutput)
      Serialize to a writer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonMetaDataSerializer

        public JsonMetaDataSerializer()
    • Method Detail

      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.Writer aWriter)
                           throws org.xml.sax.SAXException
        Serialize to a writer
        Parameters:
        object - - the instance of an XMLizable to serialize
        aWriter - - where the output goes
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.Writer aWriter,
                                  boolean isFormattedOutput)
                           throws org.xml.sax.SAXException
        Serialize to a writer
        Parameters:
        object - - the instance of an XMLizable to serialize
        aWriter - - where the output goes
        isFormattedOutput - true for pretty printing
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  com.fasterxml.jackson.core.JsonGenerator jg,
                                  boolean isFormattedOutput)
                           throws org.xml.sax.SAXException
        Serialize use a specific instance of a JsonGenerator which encapsulates where the output goes
        Parameters:
        object - - the instance of an XMLizable to serialize
        jg - the generator to use
        isFormattedOutput - true for pretty printing
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.OutputStream aOutputStream)
                           throws org.xml.sax.SAXException
        Writes out this object's JSON representation.
        Parameters:
        object - - the instance of an XMLizable to serialize
        aOutputStream - an OutputStream to which the JSON will be written
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.OutputStream aOutputStream,
                                  boolean isFormattedOutput)
                           throws org.xml.sax.SAXException
        Parameters:
        object - - the instance of an XMLizable to serialize
        aOutputStream - an OutputStream to which the JSON will be written
        isFormattedOutput - true for pretty printing
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.File file)
                           throws org.xml.sax.SAXException
        Parameters:
        object - - the instance of an XMLizable to serialize
        file - where the output goes
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably
      • toJSON

        public static void toJSON​(XMLizable object,
                                  java.io.File file,
                                  boolean isFormattedOutput)
                           throws org.xml.sax.SAXException
        Parameters:
        object - - the instance of an XMLizable to serialize
        file - where the output goes
        isFormattedOutput - true for pretty printing
        Throws:
        org.xml.sax.SAXException - - wrapping an IOException, probably