Class VelocityCompressionEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
com.viaversion.viarewind.protocol.v1_8to1_7_6_10.provider.compression.CompressionEncoder
com.viaversion.viarewind.protocol.v1_8to1_7_6_10.provider.compression.velocity.VelocityCompressionEncoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionVelocityCompressionEncoder(int threshold, com.velocitypowered.natives.compression.VelocityCompressor compressor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination) Methods inherited from class com.viaversion.viarewind.protocol.v1_8to1_7_6_10.provider.compression.CompressionEncoder
encode, setThresholdMethods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
VelocityCompressionEncoder
public VelocityCompressionEncoder(int threshold, com.velocitypowered.natives.compression.VelocityCompressor compressor)
-
-
Method Details
-
deflate
protected void deflate(io.netty.buffer.ByteBuf source, io.netty.buffer.ByteBuf destination) throws DataFormatException - Overrides:
deflatein classCompressionEncoder- Throws:
DataFormatException
-