public class BukkitEncodeHandler extends io.netty.handler.codec.MessageToByteEncoder implements ViaHandler
Constructor and Description |
---|
BukkitEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder minecraftEncoder) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object o,
io.netty.buffer.ByteBuf bytebuf) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
transform(io.netty.buffer.ByteBuf bytebuf) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public BukkitEncodeHandler(UserConnection info, io.netty.handler.codec.MessageToByteEncoder minecraftEncoder)
protected void encode(io.netty.channel.ChannelHandlerContext ctx, Object o, io.netty.buffer.ByteBuf bytebuf) throws Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder
Exception
public void transform(io.netty.buffer.ByteBuf bytebuf) throws Exception
transform
in interface ViaHandler
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface ViaHandler
exceptionCaught
in class io.netty.channel.ChannelHandlerAdapter
Exception
Copyright © 2016–2021. All rights reserved.