com.onthegomap.planetiler.util.FastGzipOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of planetiler-core Show documentation
Show all versions of planetiler-core Show documentation
Planetiler is tool to build planet-scale vector tilesets from OpenStreetMap data fast.
The newest version!
package com.onthegomap.planetiler.util;
import java.io.IOException;
import java.io.OutputStream;
import java.util.zip.Deflater;
import java.util.zip.GZIPOutputStream;
/**
* A version of {@link GZIPOutputStream} that uses {@link Deflater#BEST_SPEED} (level 1) instead of
* {@link Deflater#DEFAULT_COMPRESSION} (-1).
*/
public class FastGzipOutputStream extends GZIPOutputStream {
public FastGzipOutputStream(OutputStream out) throws IOException {
super(out);
def.setLevel(Deflater.BEST_SPEED);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy