接口 Codec

    • 方法详细资料

      • encode

        @Adaptive("codec")
        void encode​(Channel channel,
                     output,
                     message)
             throws 
        已过时。
        Encode message.
        参数:
        channel - channel.
        output - output stream.
        message - message.
        抛出:
      • decode

        @Adaptive("codec")
         decode​(Channel channel,
                       input)
               throws 
        已过时。
        Decode message.
        参数:
        channel - channel.
        input - input stream.
        返回:
        message or NEED_MORE_INPUT poison.
        抛出:
        另请参阅:
        NEED_MORE_INPUT