cn.nukkit.nbt.stream.PGZIPState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
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);
}
}