• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package java.util.zip;
27 
28 import dalvik.annotation.compat.UnsupportedAppUsage;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class Deflater {
32 
Deflater(int level, boolean nowrap)33     public Deflater(int level, boolean nowrap) {
34         throw new RuntimeException("Stub!");
35     }
36 
Deflater(int level)37     public Deflater(int level) {
38         throw new RuntimeException("Stub!");
39     }
40 
Deflater()41     public Deflater() {
42         throw new RuntimeException("Stub!");
43     }
44 
setInput(byte[] b, int off, int len)45     public void setInput(byte[] b, int off, int len) {
46         throw new RuntimeException("Stub!");
47     }
48 
setInput(byte[] b)49     public void setInput(byte[] b) {
50         throw new RuntimeException("Stub!");
51     }
52 
setDictionary(byte[] b, int off, int len)53     public void setDictionary(byte[] b, int off, int len) {
54         throw new RuntimeException("Stub!");
55     }
56 
setDictionary(byte[] b)57     public void setDictionary(byte[] b) {
58         throw new RuntimeException("Stub!");
59     }
60 
setStrategy(int strategy)61     public void setStrategy(int strategy) {
62         throw new RuntimeException("Stub!");
63     }
64 
setLevel(int level)65     public void setLevel(int level) {
66         throw new RuntimeException("Stub!");
67     }
68 
needsInput()69     public boolean needsInput() {
70         throw new RuntimeException("Stub!");
71     }
72 
finish()73     public void finish() {
74         throw new RuntimeException("Stub!");
75     }
76 
finished()77     public boolean finished() {
78         throw new RuntimeException("Stub!");
79     }
80 
deflate(byte[] b, int off, int len)81     public int deflate(byte[] b, int off, int len) {
82         throw new RuntimeException("Stub!");
83     }
84 
deflate(byte[] b)85     public int deflate(byte[] b) {
86         throw new RuntimeException("Stub!");
87     }
88 
deflate(byte[] b, int off, int len, int flush)89     public int deflate(byte[] b, int off, int len, int flush) {
90         throw new RuntimeException("Stub!");
91     }
92 
getAdler()93     public int getAdler() {
94         throw new RuntimeException("Stub!");
95     }
96 
getTotalIn()97     public int getTotalIn() {
98         throw new RuntimeException("Stub!");
99     }
100 
getBytesRead()101     public long getBytesRead() {
102         throw new RuntimeException("Stub!");
103     }
104 
getTotalOut()105     public int getTotalOut() {
106         throw new RuntimeException("Stub!");
107     }
108 
getBytesWritten()109     public long getBytesWritten() {
110         throw new RuntimeException("Stub!");
111     }
112 
reset()113     public void reset() {
114         throw new RuntimeException("Stub!");
115     }
116 
end()117     public void end() {
118         throw new RuntimeException("Stub!");
119     }
120 
finalize()121     protected void finalize() {
122         throw new RuntimeException("Stub!");
123     }
124 
ensureOpen()125     private void ensureOpen() {
126         throw new RuntimeException("Stub!");
127     }
128 
init(int level, int strategy, boolean nowrap)129     private static native long init(int level, int strategy, boolean nowrap);
130 
setDictionary(long addr, byte[] b, int off, int len)131     private static native void setDictionary(long addr, byte[] b, int off, int len);
132 
deflateBytes(long addr, byte[] b, int off, int len, int flush)133     private native int deflateBytes(long addr, byte[] b, int off, int len, int flush);
134 
getAdler(long addr)135     private static native int getAdler(long addr);
136 
reset(long addr)137     private static native void reset(long addr);
138 
end(long addr)139     private static native void end(long addr);
140 
141     public static final int BEST_COMPRESSION = 9; // 0x9
142 
143     public static final int BEST_SPEED = 1; // 0x1
144 
145     public static final int DEFAULT_COMPRESSION = -1; // 0xffffffff
146 
147     public static final int DEFAULT_STRATEGY = 0; // 0x0
148 
149     public static final int DEFLATED = 8; // 0x8
150 
151     public static final int FILTERED = 1; // 0x1
152 
153     public static final int FULL_FLUSH = 3; // 0x3
154 
155     public static final int HUFFMAN_ONLY = 2; // 0x2
156 
157     public static final int NO_COMPRESSION = 0; // 0x0
158 
159     public static final int NO_FLUSH = 0; // 0x0
160 
161     public static final int SYNC_FLUSH = 2; // 0x2
162 
163     @UnsupportedAppUsage
164     private byte[] buf;
165 
166     private long bytesRead;
167 
168     private long bytesWritten;
169 
170     @UnsupportedAppUsage
171     private boolean finish;
172 
173     @UnsupportedAppUsage
174     private boolean finished;
175 
176     private final dalvik.system.CloseGuard guard;
177 
178     {
179         guard = null;
180     }
181 
182     @UnsupportedAppUsage
183     private int len;
184 
185     @UnsupportedAppUsage
186     private int level;
187 
188     @UnsupportedAppUsage
189     private int off;
190 
191     @UnsupportedAppUsage
192     private boolean setParams;
193 
194     @UnsupportedAppUsage
195     private int strategy;
196 
197     private final java.util.zip.ZStreamRef zsRef;
198 
199     {
200         zsRef = null;
201     }
202 }
203