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

cn.nukkit.nbt.stream.PGZIPState Maven / Gradle / Ivy

Go to download

A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.

There is a newer version: 1.6.0.1-PN
Show newest version
package cn.nukkit.nbt.stream;

import java.io.ByteArrayOutputStream;
import java.util.zip.Deflater;
import java.util.zip.DeflaterOutputStream;

public class PGZIPState {
    protected final DeflaterOutputStream str;
    protected final ByteArrayOutputStream buf;
    protected final Deflater def;

    public PGZIPState(PGZIPOutputStream parent) {
        this.def = parent.newDeflater();
        this.buf = new ByteArrayOutputStream(PGZIPBlock.SIZE);
        this.str = PGZIPOutputStream.newDeflaterOutputStream(buf, def);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy