1 /*
2 * Copyright (C) 2014 The Android Open Source Project
3 * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 *
6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation. Oracle designates this
9 * particular file as subject to the "Classpath" exception as provided
10 * by Oracle in the LICENSE file that accompanied this code.
11 *
12 * This code is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 * or visit www.oracle.com if you need additional information or have any
24 * questions.
25 */
26
27
28 package java.util.zip;
29
30 import java.nio.file.attribute.FileTime;
31
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public class ZipEntry implements java.lang.Cloneable {
34
ZipEntry(java.lang.String name, java.lang.String comment, long crc, long compressedSize, long size, int compressionMethod, int xdostime, byte[] extra, long dataOffset)35 public ZipEntry(java.lang.String name, java.lang.String comment, long crc, long compressedSize, long size, int compressionMethod, int xdostime, byte[] extra, long dataOffset) { throw new RuntimeException("Stub!"); }
36
ZipEntry(java.lang.String name)37 public ZipEntry(java.lang.String name) { throw new RuntimeException("Stub!"); }
38
ZipEntry(java.util.zip.ZipEntry e)39 public ZipEntry(java.util.zip.ZipEntry e) { throw new RuntimeException("Stub!"); }
40
41 @android.annotation.SystemApi(client = android.annotation.SystemApi.Client.MODULE_LIBRARIES)
getDataOffset()42 public long getDataOffset() { throw new RuntimeException("Stub!"); }
43
getName()44 public java.lang.String getName() { throw new RuntimeException("Stub!"); }
45
setTime(long time)46 public void setTime(long time) { throw new RuntimeException("Stub!"); }
47
getTime()48 public long getTime() { throw new RuntimeException("Stub!"); }
49
setLastModifiedTime(java.nio.file.attribute.FileTime time)50 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { throw new RuntimeException("Stub!"); }
51
getLastModifiedTime()52 public java.nio.file.attribute.FileTime getLastModifiedTime() { throw new RuntimeException("Stub!"); }
53
setLastAccessTime(java.nio.file.attribute.FileTime time)54 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { throw new RuntimeException("Stub!"); }
55
getLastAccessTime()56 public java.nio.file.attribute.FileTime getLastAccessTime() { throw new RuntimeException("Stub!"); }
57
setCreationTime(java.nio.file.attribute.FileTime time)58 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { throw new RuntimeException("Stub!"); }
59
getCreationTime()60 public java.nio.file.attribute.FileTime getCreationTime() { throw new RuntimeException("Stub!"); }
61
setSize(long size)62 public void setSize(long size) { throw new RuntimeException("Stub!"); }
63
getSize()64 public long getSize() { throw new RuntimeException("Stub!"); }
65
getCompressedSize()66 public long getCompressedSize() { throw new RuntimeException("Stub!"); }
67
setCompressedSize(long csize)68 public void setCompressedSize(long csize) { throw new RuntimeException("Stub!"); }
69
setCrc(long crc)70 public void setCrc(long crc) { throw new RuntimeException("Stub!"); }
71
getCrc()72 public long getCrc() { throw new RuntimeException("Stub!"); }
73
setMethod(int method)74 public void setMethod(int method) { throw new RuntimeException("Stub!"); }
75
getMethod()76 public int getMethod() { throw new RuntimeException("Stub!"); }
77
setExtra(byte[] extra)78 public void setExtra(byte[] extra) { throw new RuntimeException("Stub!"); }
79
getExtra()80 public byte[] getExtra() { throw new RuntimeException("Stub!"); }
81
setComment(java.lang.String comment)82 public void setComment(java.lang.String comment) { throw new RuntimeException("Stub!"); }
83
getComment()84 public java.lang.String getComment() { throw new RuntimeException("Stub!"); }
85
isDirectory()86 public boolean isDirectory() { throw new RuntimeException("Stub!"); }
87
toString()88 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
89
hashCode()90 public int hashCode() { throw new RuntimeException("Stub!"); }
91
clone()92 public java.lang.Object clone() { throw new RuntimeException("Stub!"); }
93
94 public static final int CENATT = 36; // 0x24
95
96 public static final int CENATX = 38; // 0x26
97
98 public static final int CENCOM = 32; // 0x20
99
100 public static final int CENCRC = 16; // 0x10
101
102 public static final int CENDSK = 34; // 0x22
103
104 public static final int CENEXT = 30; // 0x1e
105
106 public static final int CENFLG = 8; // 0x8
107
108 public static final int CENHDR = 46; // 0x2e
109
110 public static final int CENHOW = 10; // 0xa
111
112 public static final int CENLEN = 24; // 0x18
113
114 public static final int CENNAM = 28; // 0x1c
115
116 public static final int CENOFF = 42; // 0x2a
117
118 public static final long CENSIG = 33639248L; // 0x2014b50L
119
120 public static final int CENSIZ = 20; // 0x14
121
122 public static final int CENTIM = 12; // 0xc
123
124 public static final int CENVEM = 4; // 0x4
125
126 public static final int CENVER = 6; // 0x6
127
128 public static final int DEFLATED = 8; // 0x8
129
130 public static final int ENDCOM = 20; // 0x14
131
132 public static final int ENDHDR = 22; // 0x16
133
134 public static final int ENDOFF = 16; // 0x10
135
136 public static final long ENDSIG = 101010256L; // 0x6054b50L
137
138 public static final int ENDSIZ = 12; // 0xc
139
140 public static final int ENDSUB = 8; // 0x8
141
142 public static final int ENDTOT = 10; // 0xa
143
144 public static final int EXTCRC = 4; // 0x4
145
146 public static final int EXTHDR = 16; // 0x10
147
148 public static final int EXTLEN = 12; // 0xc
149
150 public static final long EXTSIG = 134695760L; // 0x8074b50L
151
152 public static final int EXTSIZ = 8; // 0x8
153
154 public static final int LOCCRC = 14; // 0xe
155
156 public static final int LOCEXT = 28; // 0x1c
157
158 public static final int LOCFLG = 6; // 0x6
159
160 public static final int LOCHDR = 30; // 0x1e
161
162 public static final int LOCHOW = 8; // 0x8
163
164 public static final int LOCLEN = 22; // 0x16
165
166 public static final int LOCNAM = 26; // 0x1a
167
168 public static final long LOCSIG = 67324752L; // 0x4034b50L
169
170 public static final int LOCSIZ = 18; // 0x12
171
172 public static final int LOCTIM = 10; // 0xa
173
174 public static final int LOCVER = 4; // 0x4
175
176 public static final int STORED = 0; // 0x0
177
178 public static final long UPPER_DOSTIME_BOUND = 4036608000000L; // 0x3abd8960000L
179 }
180
181