public class CompressionCodec extends io.netty.handler.codec.MessageToMessageCodec<BedrockBatchWrapper,BedrockBatchWrapper>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
CompressionCodec(CompressionStrategy strategy,
boolean prefixed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg,
java.util.List<java.lang.Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg,
java.util.List<java.lang.Object> out) |
protected org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm |
getCompressionAlgorithm(byte header) |
protected org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm |
getCompressionAlgorithm0(byte header) |
protected byte |
getCompressionHeader(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm) |
protected byte |
getCompressionHeader0(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm) |
CompressionStrategy |
getStrategy() |
protected void |
onCompressed(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg) |
protected void |
onDecompressed(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg) |
protected void |
onPassedThrough(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg) |
acceptInboundMessage, acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final java.lang.String NAME
public CompressionCodec(CompressionStrategy strategy, boolean prefixed)
protected void encode(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
encode in class io.netty.handler.codec.MessageToMessageCodec<BedrockBatchWrapper,BedrockBatchWrapper>java.lang.Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode in class io.netty.handler.codec.MessageToMessageCodec<BedrockBatchWrapper,BedrockBatchWrapper>java.lang.Exceptionprotected void onPassedThrough(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg)
protected void onCompressed(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg)
protected void onDecompressed(io.netty.channel.ChannelHandlerContext ctx,
BedrockBatchWrapper msg)
protected final byte getCompressionHeader(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm)
protected final org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm getCompressionAlgorithm(byte header)
protected byte getCompressionHeader0(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm)
protected org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm getCompressionAlgorithm0(byte header)
public CompressionStrategy getStrategy()