1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
|
/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.util.zip;
import android.compat.annotation.UnsupportedAppUsage;
@SuppressWarnings({"unchecked", "deprecation", "all"})
public class ZipFile implements java.util.zip.ZipConstants, java.io.Closeable {
public ZipFile(java.lang.String name) throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public ZipFile(java.io.File file, int mode) throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public ZipFile(java.io.File file) throws java.io.IOException, java.util.zip.ZipException {
throw new RuntimeException("Stub!");
}
public ZipFile(java.io.File file, int mode, java.nio.charset.Charset charset)
throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public ZipFile(java.lang.String name, java.nio.charset.Charset charset)
throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public ZipFile(java.io.File file, java.nio.charset.Charset charset) throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public java.lang.String getComment() {
throw new RuntimeException("Stub!");
}
public java.util.zip.ZipEntry getEntry(java.lang.String name) {
throw new RuntimeException("Stub!");
}
@UnsupportedAppUsage
private static native long getEntry(long jzfile, byte[] name, boolean addSlash);
private static native void freeEntry(long jzfile, long jzentry);
public java.io.InputStream getInputStream(java.util.zip.ZipEntry entry)
throws java.io.IOException {
throw new RuntimeException("Stub!");
}
private java.util.zip.Inflater getInflater() {
throw new RuntimeException("Stub!");
}
private void releaseInflater(java.util.zip.Inflater inf) {
throw new RuntimeException("Stub!");
}
public java.lang.String getName() {
throw new RuntimeException("Stub!");
}
public java.util.Enumeration<? extends java.util.zip.ZipEntry> entries() {
throw new RuntimeException("Stub!");
}
public java.util.stream.Stream<? extends java.util.zip.ZipEntry> stream() {
throw new RuntimeException("Stub!");
}
private java.util.zip.ZipEntry getZipEntry(java.lang.String name, long jzentry) {
throw new RuntimeException("Stub!");
}
private static native long getNextEntry(long jzfile, int i);
public int size() {
throw new RuntimeException("Stub!");
}
public void close() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
protected void finalize() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
@UnsupportedAppUsage
private static native void close(long jzfile);
private void ensureOpen() {
throw new RuntimeException("Stub!");
}
private void ensureOpenOrZipException() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public boolean startsWithLocHeader() {
throw new RuntimeException("Stub!");
}
public int getFileDescriptor() {
throw new RuntimeException("Stub!");
}
private static native int getFileDescriptor(long jzfile);
private static native long open(
java.lang.String name, int mode, long lastModified, boolean usemmap)
throws java.io.IOException;
private static native int getTotal(long jzfile);
private static native boolean startsWithLOC(long jzfile);
private static native int read(long jzfile, long jzentry, long pos, byte[] b, int off, int len);
private static native long getEntryTime(long jzentry);
private static native long getEntryCrc(long jzentry);
private static native long getEntryCSize(long jzentry);
private static native long getEntrySize(long jzentry);
private static native int getEntryMethod(long jzentry);
private static native int getEntryFlag(long jzentry);
private static native byte[] getCommentBytes(long jzfile);
private static native byte[] getEntryBytes(long jzentry, int type);
private static native java.lang.String getZipMessage(long jzfile);
private static final int DEFLATED = 8; // 0x8
private static final int JZENTRY_COMMENT = 2; // 0x2
private static final int JZENTRY_EXTRA = 1; // 0x1
private static final int JZENTRY_NAME = 0; // 0x0
public static final int OPEN_DELETE = 4; // 0x4
public static final int OPEN_READ = 1; // 0x1
private static final int STORED = 0; // 0x0
private volatile boolean closeRequested = false;
private final java.io.File fileToRemoveOnClose;
{
fileToRemoveOnClose = null;
}
private final dalvik.system.CloseGuard guard;
{
guard = null;
}
private java.util.Deque<java.util.zip.Inflater> inflaterCache;
@UnsupportedAppUsage
private long jzfile;
private final boolean locsig;
{
locsig = false;
}
private final java.lang.String name;
{
name = null;
}
private final java.util.Map<java.io.InputStream, java.util.zip.Inflater> streams;
{
streams = null;
}
private final int total;
{
total = 0;
}
private static final boolean usemmap;
static {
usemmap = false;
}
private java.util.zip.ZipCoder zc;
@SuppressWarnings({"unchecked", "deprecation", "all"})
private class ZipEntryIterator
implements java.util.Enumeration<java.util.zip.ZipEntry>,
java.util.Iterator<java.util.zip.ZipEntry> {
public ZipEntryIterator() {
throw new RuntimeException("Stub!");
}
public boolean hasMoreElements() {
throw new RuntimeException("Stub!");
}
public boolean hasNext() {
throw new RuntimeException("Stub!");
}
@UnsupportedAppUsage
public java.util.zip.ZipEntry nextElement() {
throw new RuntimeException("Stub!");
}
public java.util.zip.ZipEntry next() {
throw new RuntimeException("Stub!");
}
private int i = 0; // 0x0
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
private class ZipFileInflaterInputStream extends java.util.zip.InflaterInputStream {
ZipFileInflaterInputStream(
java.util.zip.ZipFile.ZipFileInputStream zfin,
java.util.zip.Inflater inf,
int size) {
super((java.io.InputStream) null);
throw new RuntimeException("Stub!");
}
public void close() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
protected void fill() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public int available() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
protected void finalize() throws java.lang.Throwable {
throw new RuntimeException("Stub!");
}
private volatile boolean closeRequested = false;
private boolean eof = false;
private final java.util.zip.ZipFile.ZipFileInputStream zfin;
{
zfin = null;
}
}
@SuppressWarnings({"unchecked", "deprecation", "all"})
private class ZipFileInputStream extends java.io.InputStream {
ZipFileInputStream(long jzentry) {
throw new RuntimeException("Stub!");
}
public int read(byte[] b, int off, int len) throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public int read() throws java.io.IOException {
throw new RuntimeException("Stub!");
}
public long skip(long n) {
throw new RuntimeException("Stub!");
}
public int available() {
throw new RuntimeException("Stub!");
}
public long size() {
throw new RuntimeException("Stub!");
}
public void close() {
throw new RuntimeException("Stub!");
}
protected void finalize() {
throw new RuntimeException("Stub!");
}
protected long jzentry;
private long pos;
protected long rem;
protected long size;
private volatile boolean zfisCloseRequested = false;
}
}
|