Class JsonMetaDataSerializer

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

public class JsonMetaDataSerializer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    toJSON(org.apache.uima.util.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(org.apache.uima.util.XMLizable object, File file)
     
    static void
    toJSON(org.apache.uima.util.XMLizable object, File file, boolean isFormattedOutput)
     
    static void
    toJSON(org.apache.uima.util.XMLizable object, OutputStream aOutputStream)
    Writes out this object's JSON representation.
    static void
    toJSON(org.apache.uima.util.XMLizable object, OutputStream aOutputStream, boolean isFormattedOutput)
     
    static void
    toJSON(org.apache.uima.util.XMLizable object, Writer aWriter)
    Serialize to a writer
    static void
    toJSON(org.apache.uima.util.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 Details

    • JsonMetaDataSerializer

      public JsonMetaDataSerializer()
  • Method Details

    • toJSON

      public static void toJSON(org.apache.uima.util.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(org.apache.uima.util.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(org.apache.uima.util.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(org.apache.uima.util.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(org.apache.uima.util.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(org.apache.uima.util.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(org.apache.uima.util.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