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 package java.util.zip; 28 29 import android.compat.annotation.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class ZipEntry implements java.util.zip.ZipConstants, java.lang.Cloneable { 33 34 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 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( 36 java.lang.String name, 37 java.lang.String comment, 38 long crc, 39 long compressedSize, 40 long size, 41 int compressionMethod, 42 int xdostime, 43 byte[] extra, 44 long dataOffset) { 45 throw new RuntimeException("Stub!"); 46 } 47 ZipEntry(java.lang.String name)48 public ZipEntry(java.lang.String name) { 49 throw new RuntimeException("Stub!"); 50 } 51 ZipEntry(java.util.zip.ZipEntry e)52 public ZipEntry(java.util.zip.ZipEntry e) { 53 throw new RuntimeException("Stub!"); 54 } 55 ZipEntry()56 ZipEntry() { 57 throw new RuntimeException("Stub!"); 58 } 59 getDataOffset()60 public long getDataOffset() { 61 throw new RuntimeException("Stub!"); 62 } 63 getName()64 public java.lang.String getName() { 65 throw new RuntimeException("Stub!"); 66 } 67 setTime(long time)68 public void setTime(long time) { 69 throw new RuntimeException("Stub!"); 70 } 71 getTime()72 public long getTime() { 73 throw new RuntimeException("Stub!"); 74 } 75 setLastModifiedTime(java.nio.file.attribute.FileTime time)76 public java.util.zip.ZipEntry setLastModifiedTime(java.nio.file.attribute.FileTime time) { 77 throw new RuntimeException("Stub!"); 78 } 79 getLastModifiedTime()80 public java.nio.file.attribute.FileTime getLastModifiedTime() { 81 throw new RuntimeException("Stub!"); 82 } 83 setLastAccessTime(java.nio.file.attribute.FileTime time)84 public java.util.zip.ZipEntry setLastAccessTime(java.nio.file.attribute.FileTime time) { 85 throw new RuntimeException("Stub!"); 86 } 87 getLastAccessTime()88 public java.nio.file.attribute.FileTime getLastAccessTime() { 89 throw new RuntimeException("Stub!"); 90 } 91 setCreationTime(java.nio.file.attribute.FileTime time)92 public java.util.zip.ZipEntry setCreationTime(java.nio.file.attribute.FileTime time) { 93 throw new RuntimeException("Stub!"); 94 } 95 getCreationTime()96 public java.nio.file.attribute.FileTime getCreationTime() { 97 throw new RuntimeException("Stub!"); 98 } 99 setSize(long size)100 public void setSize(long size) { 101 throw new RuntimeException("Stub!"); 102 } 103 getSize()104 public long getSize() { 105 throw new RuntimeException("Stub!"); 106 } 107 getCompressedSize()108 public long getCompressedSize() { 109 throw new RuntimeException("Stub!"); 110 } 111 setCompressedSize(long csize)112 public void setCompressedSize(long csize) { 113 throw new RuntimeException("Stub!"); 114 } 115 setCrc(long crc)116 public void setCrc(long crc) { 117 throw new RuntimeException("Stub!"); 118 } 119 getCrc()120 public long getCrc() { 121 throw new RuntimeException("Stub!"); 122 } 123 setMethod(int method)124 public void setMethod(int method) { 125 throw new RuntimeException("Stub!"); 126 } 127 getMethod()128 public int getMethod() { 129 throw new RuntimeException("Stub!"); 130 } 131 setExtra(byte[] extra)132 public void setExtra(byte[] extra) { 133 throw new RuntimeException("Stub!"); 134 } 135 setExtra0(byte[] extra, boolean doZIP64)136 void setExtra0(byte[] extra, boolean doZIP64) { 137 throw new RuntimeException("Stub!"); 138 } 139 getExtra()140 public byte[] getExtra() { 141 throw new RuntimeException("Stub!"); 142 } 143 setComment(java.lang.String comment)144 public void setComment(java.lang.String comment) { 145 throw new RuntimeException("Stub!"); 146 } 147 getComment()148 public java.lang.String getComment() { 149 throw new RuntimeException("Stub!"); 150 } 151 isDirectory()152 public boolean isDirectory() { 153 throw new RuntimeException("Stub!"); 154 } 155 toString()156 public java.lang.String toString() { 157 throw new RuntimeException("Stub!"); 158 } 159 hashCode()160 public int hashCode() { 161 throw new RuntimeException("Stub!"); 162 } 163 clone()164 public java.lang.Object clone() { 165 throw new RuntimeException("Stub!"); 166 } 167 168 public static final int DEFLATED = 8; // 0x8 169 170 static final long DOSTIME_BEFORE_1980 = 2162688L; // 0x210000L 171 172 public static final int STORED = 0; // 0x0 173 174 public static final long UPPER_DOSTIME_BOUND = 4036608000000L; // 0x3abd8960000L 175 176 java.nio.file.attribute.FileTime atime; 177 178 java.lang.String comment; 179 180 long crc = -1; // 0xffffffff 181 182 long csize = -1; // 0xffffffff 183 184 java.nio.file.attribute.FileTime ctime; 185 186 long dataOffset; 187 188 byte[] extra; 189 190 int flag = 0; // 0x0 191 192 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 193 int method = -1; // 0xffffffff 194 195 java.nio.file.attribute.FileTime mtime; 196 197 java.lang.String name; 198 199 long size = -1; // 0xffffffff 200 201 long xdostime = -1; // 0xffffffff 202 } 203