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

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

There is a newer version: 1.20.40-r1
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