Package net.md_5.bungee.jni.zlib
Class NativeZlib
- java.lang.Object
-
- net.md_5.bungee.jni.zlib.NativeZlib
-
- All Implemented Interfaces:
BungeeZlib
public class NativeZlib extends Object implements BungeeZlib
-
-
Field Summary
-
Fields inherited from interface net.md_5.bungee.jni.zlib.BungeeZlib
OUTPUT_BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description NativeZlib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowComposite()voidfree()NativeCompressImplgetNativeCompress()voidinit(boolean compress, int level)voidprocess(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out)
-
-
-
Method Detail
-
init
public void init(boolean compress, int level)- Specified by:
initin interfaceBungeeZlib
-
free
public void free()
- Specified by:
freein interfaceBungeeZlib
-
process
public void process(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out) throws DataFormatException- Specified by:
processin interfaceBungeeZlib- Throws:
DataFormatException
-
allowComposite
public boolean allowComposite()
- Specified by:
allowCompositein interfaceBungeeZlib
-
getNativeCompress
public NativeCompressImpl getNativeCompress()
-
-