Class Zlib

java.lang.Object
org.cloudburstmc.server.utils.Zlib

public final class Zlib extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Zlib
     
    static Zlib
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Zlib​(int level, boolean nowrap)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    deflate​(byte[] input, int level)
     
    void
    deflate​(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int level)
     
    byte[]
    inflate​(byte[] input)
     
    void
    inflate​(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output)
     
    void
    inflate​(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int maxSize)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT

      public static final Zlib DEFAULT
    • GZIP

      public static final Zlib GZIP
  • Constructor Details

    • Zlib

      public Zlib(int level, boolean nowrap)
  • Method Details

    • inflate

      public void inflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int maxSize) throws DataFormatException
      Throws:
      DataFormatException
    • inflate

      public void inflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output) throws DataFormatException
      Throws:
      DataFormatException
    • inflate

      public byte[] inflate(byte[] input) throws DataFormatException
      Throws:
      DataFormatException
    • deflate

      public void deflate(io.netty.buffer.ByteBuf input, io.netty.buffer.ByteBuf output, int level)
    • deflate

      public byte[] deflate(byte[] input, int level)