Package com.jcraft.jzlib

Examples of com.jcraft.jzlib.GZIPOutputStream


    private IRubyObject initializeCommon(IRubyObject stream, int level) {
        realIo = (RubyObject) stream;
        try {
            // the 15+16 here is copied from a Deflater default constructor
            Deflater deflater = new Deflater(level, 15+16, false);
            io = new GZIPOutputStream(new IOOutputStream(realIo, false, false), deflater, 512, false);
            return this;
        } catch (IOException ioe) {
            throw getRuntime().newIOErrorFromException(ioe);
        }
    }
View Full Code Here


* @author Alexey Andreev <konsoletyper@gmail.com>
*/
public class TGZIPOutputStream extends TDeflaterOutputStream {
    public TGZIPOutputStream(OutputStream out, int size, boolean syncFlush) throws IOException {
        super(out);
        this.out = new GZIPOutputStream(out, size, syncFlush);
    }
View Full Code Here

TOP

Related Classes of com.jcraft.jzlib.GZIPOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.