Class JsonCodec

  • All Implemented Interfaces:
    Codec

    public class JsonCodec
    extends java.lang.Object
    implements Codec
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonCodec()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T decode​(io.netty.buffer.ByteBuf buffer, java.lang.Class<T> tClass)  
      io.netty.buffer.ByteBuf encode​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

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

      • JsonCodec

        public JsonCodec()
    • Method Detail

      • encode

        public io.netty.buffer.ByteBuf encode​(java.lang.Object object)
        Specified by:
        encode in interface Codec
      • decode

        public <T> T decode​(io.netty.buffer.ByteBuf buffer,
                            java.lang.Class<T> tClass)
        Specified by:
        decode in interface Codec