public class ViaCodec
extends io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>
| Modifier and Type | Field and Description |
|---|---|
protected com.viaversion.viaversion.api.connection.UserConnection |
user |
| Constructor and Description |
|---|
ViaCodec(com.viaversion.viaversion.api.connection.UserConnection user) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out) |
boolean |
isSharable() |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise) |
acceptOutboundMessage, channelInactive, channelReadComplete, decodeLast, handlerAdded, handlerRemovedbind, close, connect, deregister, disconnect, flush, readchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic ViaCodec(com.viaversion.viaversion.api.connection.UserConnection user)
protected void encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out)
throws java.lang.Exception
encode in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise)
throws java.lang.Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg)
throws java.lang.Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.handler.codec.ByteToMessageCodec<io.netty.buffer.ByteBuf>java.lang.Exceptionpublic boolean isSharable()
isSharable in class io.netty.channel.ChannelHandlerAdapter