1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 1996, 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 ZipInputStream extends java.util.zip.InflaterInputStream 33 implements java.util.zip.ZipConstants { 34 ZipInputStream(java.io.InputStream in)35 public ZipInputStream(java.io.InputStream in) { 36 super((java.io.InputStream) null); 37 throw new RuntimeException("Stub!"); 38 } 39 ZipInputStream(java.io.InputStream in, java.nio.charset.Charset charset)40 public ZipInputStream(java.io.InputStream in, java.nio.charset.Charset charset) { 41 super((java.io.InputStream) null); 42 throw new RuntimeException("Stub!"); 43 } 44 ensureOpen()45 private void ensureOpen() throws java.io.IOException { 46 throw new RuntimeException("Stub!"); 47 } 48 getNextEntry()49 public java.util.zip.ZipEntry getNextEntry() throws java.io.IOException { 50 throw new RuntimeException("Stub!"); 51 } 52 closeEntry()53 public void closeEntry() throws java.io.IOException { 54 throw new RuntimeException("Stub!"); 55 } 56 available()57 public int available() throws java.io.IOException { 58 throw new RuntimeException("Stub!"); 59 } 60 read(byte[] b, int off, int len)61 public int read(byte[] b, int off, int len) throws java.io.IOException { 62 throw new RuntimeException("Stub!"); 63 } 64 skip(long n)65 public long skip(long n) throws java.io.IOException { 66 throw new RuntimeException("Stub!"); 67 } 68 close()69 public void close() throws java.io.IOException { 70 throw new RuntimeException("Stub!"); 71 } 72 readLOC()73 private java.util.zip.ZipEntry readLOC() throws java.io.IOException { 74 throw new RuntimeException("Stub!"); 75 } 76 createZipEntry(java.lang.String name)77 protected java.util.zip.ZipEntry createZipEntry(java.lang.String name) { 78 throw new RuntimeException("Stub!"); 79 } 80 readEnd(java.util.zip.ZipEntry e)81 private void readEnd(java.util.zip.ZipEntry e) throws java.io.IOException { 82 throw new RuntimeException("Stub!"); 83 } 84 readFully(byte[] b, int off, int len)85 private void readFully(byte[] b, int off, int len) throws java.io.IOException { 86 throw new RuntimeException("Stub!"); 87 } 88 89 private static final int DEFLATED = 8; // 0x8 90 91 private static final int STORED = 0; // 0x0 92 93 private byte[] b; 94 95 private boolean closed = false; 96 97 private java.util.zip.CRC32 crc; 98 99 private java.util.zip.ZipEntry entry; 100 101 private boolean entryEOF = false; 102 103 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 104 private int flag; 105 106 private long remaining; 107 108 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) 109 private byte[] tmpbuf; 110 111 private java.util.zip.ZipCoder zc; 112 } 113