cn.nukkit.utils.PNXLibDeflater Maven / Gradle / Ivy
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