org.apache.uima.json

## Class JsonMetaDataSerializer

- java.lang.Object
- - org.apache.uima.json.JsonMetaDataSerializer

-     public class JsonMetaDataSerializer
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonMetaDataSerializer()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `toJSON(XMLizable object, File file)`
    `static void` | `toJSON(XMLizable object, File file, boolean isFormattedOutput)`
    `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, OutputStream aOutputStream)` Writes out this object's JSON representation.
    `static void` | `toJSON(XMLizable object, OutputStream aOutputStream, boolean isFormattedOutput)`
    `static void` | `toJSON(XMLizable object, Writer aWriter)` Serialize to a writer
    `static void` | `toJSON(XMLizable object, 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,
                                    Writer aWriter)
                             throws SAXException

      Serialize to a writer
      Parameters:
        `object` - - the instance of an XMLizable to serialize
        `aWriter` - - where the output goes
      Throws:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    Writer aWriter,
                                    boolean isFormattedOutput)
                             throws 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:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    com.fasterxml.jackson.core.JsonGenerator jg,
                                    boolean isFormattedOutput)
                             throws 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:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    OutputStream aOutputStream)
                             throws 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:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    OutputStream aOutputStream,
                                    boolean isFormattedOutput)
                             throws 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:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    File file)
                             throws SAXException

      Parameters:
        `object` - - the instance of an XMLizable to serialize
        `file` - where the output goes
      Throws:
        `SAXException` - - wrapping an IOException, probably

    - #### toJSON

          public static void toJSON(XMLizable object,
                                    File file,
                                    boolean isFormattedOutput)
                             throws SAXException

      Parameters:
        `object` - - the instance of an XMLizable to serialize
        `file` - where the output goes
        `isFormattedOutput` - true for pretty printing
      Throws:
        `SAXException` - - wrapping an IOException, probably

Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.