~ubuntu-branches/ubuntu/vivid/jzlib/vivid

« back to all changes in this revision

Viewing changes to com/jcraft/jzlib/ZStream.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2008-08-24 22:45:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080824224534-w0t34odkdtrfevta
Tags: 1.0.7-1
* New upstream release
* New maintainer (Closes: #491858)
* Use CDBS (Ant with debian/build.xml) for building
* Ship examples in libjzlib-java
* debian/libjzlib-java.dirs: Removed because dirs are created by dh_install
* debian/copyright: Made clear statements about license and upstreams
  authors (remove crufted debian/copyright.in and lintian override)
* debian/watch: monitoring of upstream release on jcraft.com
* debian/rules: create a get-orig-source using uscan and debian/watch
* debian/control:
  * Use better synopsis and long description (Thanks to Ben Finney)
  * Add Homepage and Vcs-* fields
  * Bumping debhelper compat level from 4 to 5 (see debian/compat)
  * Build-Depends on GCJ instead of Kaffe 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*-mode:java; c-basic-offset:2; -*- */
 
1
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
2
2
/*
3
3
Copyright (c) 2000,2001,2002,2003 ymnk, JCraft,Inc. All rights reserved.
4
4
 
80
80
  public int inflateInit(){
81
81
    return inflateInit(DEF_WBITS);
82
82
  }
 
83
  public int inflateInit(boolean nowrap){
 
84
    return inflateInit(DEF_WBITS, nowrap);
 
85
  }
83
86
  public int inflateInit(int w){
 
87
    return inflateInit(w, false);
 
88
  }
 
89
 
 
90
  public int inflateInit(int w, boolean nowrap){
84
91
    istate=new Inflate();
85
 
    return istate.inflateInit(this, w);
 
92
    return istate.inflateInit(this, nowrap?-w:w);
86
93
  }
87
94
 
88
95
  public int inflate(int f){
109
116
  public int deflateInit(int level){
110
117
    return deflateInit(level, MAX_WBITS);
111
118
  }
 
119
  public int deflateInit(int level, boolean nowrap){
 
120
    return deflateInit(level, MAX_WBITS, nowrap);
 
121
  }
112
122
  public int deflateInit(int level, int bits){
 
123
    return deflateInit(level, bits, false);
 
124
  }
 
125
  public int deflateInit(int level, int bits, boolean nowrap){
113
126
    dstate=new Deflate();
114
 
    return dstate.deflateInit(this, level, bits);
 
127
    return dstate.deflateInit(this, level, nowrap?-bits:bits);
115
128
  }
116
129
  public int deflate(int flush){
117
130
    if(dstate==null){