Examples of ZStream


Examples of com.jcraft.jzlib.ZStream

  /**
   * Creates a new instance of {@code Compression}.
   */
  public CompressionImpl() {
    _zstream = new ZStream();
  }
View Full Code Here

Examples of com.jcraft.jzlib.ZStream

    private ZStream stream;

    @Override
    public void init(Mode mode) {
        stream = new ZStream();
        switch (mode) {
            case DEFLATE:
                stream.deflateInit(JZlib.Z_DEFAULT_COMPRESSION);
                break;
            case INFLATE:
View Full Code Here

Examples of com.jcraft.jzlib.ZStream

            throw new IllegalArgumentException(
                    "invalid compression level specified");
        }

        // create a new instance of ZStream. This will be done only once.
        zStream = new ZStream();

        switch (mode) {
        case MODE_DEFLATER:
            zStream.deflateInit(this.compressionLevel);
            break;
View Full Code Here

Examples of com.jcraft.jzlib.ZStream

    public void init() {
        if (cStream != null) {
            return;
        }
        // can't call: cStream.free(); - will kill the adler, NPE
        cStream = new ZStream();
        // BEST_COMRESSION results in 256Kb per Deflate
        // 15 == default = 32k window
        cStream.deflateInit(JZlib.Z_BEST_SPEED, 10);

        dStream = new ZStream();
        dStream.inflateInit();

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.