All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.utils.PNXLibDeflater Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.utils;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.powernukkitx.libdeflate.LibdeflateCompressor;

import java.io.Closeable;

@PowerNukkitXOnly
@Since("1.19.40-r3")
public final class PNXLibDeflater extends LibdeflateCompressor implements Closeable, AutoCloseable {
    public PNXLibDeflater() {
        this(6);
    }

    public PNXLibDeflater(int level) {
        super(level);
    }

    @Override
    @SuppressWarnings("deprecation")
    protected void finalize() throws Throwable {
        if (!closed) {
            close();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy