Class SupportJson.Jackson2JsonLibrary

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <T> T read​(io.netty.buffer.ByteBuf content, java.lang.reflect.Type valueType)
      Deprecated.
      Read a JSON value from the given content.
      io.netty.buffer.ByteBuf write​(io.netty.buffer.ByteBufAllocator alloc, java.lang.Object value)
      Deprecated.
      Write a JSON value into the a ByteBuf.
      • Methods inherited from class java.lang.Object

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

      • Jackson2JsonLibrary

        public Jackson2JsonLibrary​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Deprecated.
        Constructs a new SupportJson.Jackson2JsonLibrary with the specified ObjectMapper.
        Parameters:
        objectMapper - an ObjectMapper
    • Method Detail

      • read

        public <T> T read​(io.netty.buffer.ByteBuf content,
                          java.lang.reflect.Type valueType)
        Deprecated.
        Description copied from interface: SupportJson.JsonLibrary
        Read a JSON value from the given content.
        Specified by:
        read in interface SupportJson.JsonLibrary
        Type Parameters:
        T - the type of the value to be converted to
        Parameters:
        content - a ByteBuf
        valueType - the common type of the value
        Returns:
        the converted object
      • write

        public io.netty.buffer.ByteBuf write​(io.netty.buffer.ByteBufAllocator alloc,
                                             java.lang.Object value)
        Deprecated.
        Description copied from interface: SupportJson.JsonLibrary
        Write a JSON value into the a ByteBuf.
        Specified by:
        write in interface SupportJson.JsonLibrary
        Parameters:
        alloc - the ByteBufAllocator allocates ByteBufs
        value - the value object
        Returns:
        a ByteBuf