类 CompressionDecoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
net.minecraft.network.CompressionDecoder
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class CompressionDecoder extends io.netty.handler.codec.ByteToMessageDecoder
  • 嵌套类概要

    从类继承的嵌套类/接口 io.netty.handler.codec.ByteToMessageDecoder

    io.netty.handler.codec.ByteToMessageDecoder.Cumulator

    从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final Inflater
     
    static final int
     
    static final int
     
    private int
     
    private boolean
     

    从类继承的字段 io.netty.handler.codec.ByteToMessageDecoder

    COMPOSITE_CUMULATOR, MERGE_CUMULATOR
  • 构造器概要

    构造器
    构造器
    说明
    CompressionDecoder(int p_182675_, boolean p_182676_)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    decode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_)
     
    private io.netty.buffer.ByteBuf
    inflate(io.netty.channel.ChannelHandlerContext p_295791_, int p_295281_)
     
    void
    setThreshold(int p_182678_, boolean p_182679_)
     
    private void
    setupInflaterInput(io.netty.buffer.ByteBuf p_296004_)
     

    从类继承的方法 io.netty.handler.codec.ByteToMessageDecoder

    actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered

    从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught

    从类继承的方法 io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerAdded, isSharable

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 io.netty.channel.ChannelHandler

    handlerAdded
  • 字段详细资料

    • MAXIMUM_COMPRESSED_LENGTH

      public static final int MAXIMUM_COMPRESSED_LENGTH
      另请参阅:
    • MAXIMUM_UNCOMPRESSED_LENGTH

      public static final int MAXIMUM_UNCOMPRESSED_LENGTH
      另请参阅:
    • inflater

      private final Inflater inflater
    • threshold

      private int threshold
    • validateDecompressed

      private boolean validateDecompressed
  • 构造器详细资料

    • CompressionDecoder

      public CompressionDecoder(int p_182675_, boolean p_182676_)
  • 方法详细资料

    • decode

      protected void decode(io.netty.channel.ChannelHandlerContext p_129441_, io.netty.buffer.ByteBuf p_129442_, List<Object> p_129443_) throws Exception
      指定者:
      decode 在类中 io.netty.handler.codec.ByteToMessageDecoder
      抛出:
      Exception
    • setupInflaterInput

      private void setupInflaterInput(io.netty.buffer.ByteBuf p_296004_)
    • inflate

      private io.netty.buffer.ByteBuf inflate(io.netty.channel.ChannelHandlerContext p_295791_, int p_295281_) throws DataFormatException
      抛出:
      DataFormatException
    • setThreshold

      public void setThreshold(int p_182678_, boolean p_182679_)