Class JacksonJSONContext<T extends Message.Mutable,​I extends T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected JacksonJSONContext()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String generate​(java.util.List<T> messages)  
      java.lang.String generate​(T message)  
      JSONContext.Generator getGenerator()  
      com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()  
      JSONContext.Parser getParser()  
      T[] parse​(java.io.InputStream stream)  
      T[] parse​(java.io.Reader reader)  
      T[] parse​(java.lang.String json)  
      protected abstract java.lang.Class<I[]> rootArrayClass()  
      • Methods inherited from class java.lang.Object

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

      • JacksonJSONContext

        protected JacksonJSONContext()
    • Method Detail

      • getObjectMapper

        public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      • rootArrayClass

        protected abstract java.lang.Class<I[]> rootArrayClass()
      • parse

        public T[] parse​(java.io.InputStream stream)
                  throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parse

        public T[] parse​(java.io.Reader reader)
                  throws java.text.ParseException
        Throws:
        java.text.ParseException
      • parse

        public T[] parse​(java.lang.String json)
                  throws java.text.ParseException
        Throws:
        java.text.ParseException
      • generate

        public java.lang.String generate​(T message)
      • generate

        public java.lang.String generate​(java.util.List<T> messages)