1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * Copyright (c) 1996, 2013, 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 dalvik.annotation.compat.UnsupportedAppUsage; 30 31 @SuppressWarnings({"unchecked", "deprecation", "all"}) 32 public class Inflater { 33 Inflater(boolean nowrap)34 public Inflater(boolean nowrap) { 35 throw new RuntimeException("Stub!"); 36 } 37 Inflater()38 public Inflater() { 39 throw new RuntimeException("Stub!"); 40 } 41 setInput(byte[] b, int off, int len)42 public void setInput(byte[] b, int off, int len) { 43 throw new RuntimeException("Stub!"); 44 } 45 setInput(byte[] b)46 public void setInput(byte[] b) { 47 throw new RuntimeException("Stub!"); 48 } 49 setDictionary(byte[] b, int off, int len)50 public void setDictionary(byte[] b, int off, int len) { 51 throw new RuntimeException("Stub!"); 52 } 53 setDictionary(byte[] b)54 public void setDictionary(byte[] b) { 55 throw new RuntimeException("Stub!"); 56 } 57 getRemaining()58 public int getRemaining() { 59 throw new RuntimeException("Stub!"); 60 } 61 needsInput()62 public boolean needsInput() { 63 throw new RuntimeException("Stub!"); 64 } 65 needsDictionary()66 public boolean needsDictionary() { 67 throw new RuntimeException("Stub!"); 68 } 69 finished()70 public boolean finished() { 71 throw new RuntimeException("Stub!"); 72 } 73 inflate(byte[] b, int off, int len)74 public int inflate(byte[] b, int off, int len) throws java.util.zip.DataFormatException { 75 throw new RuntimeException("Stub!"); 76 } 77 inflate(byte[] b)78 public int inflate(byte[] b) throws java.util.zip.DataFormatException { 79 throw new RuntimeException("Stub!"); 80 } 81 getAdler()82 public int getAdler() { 83 throw new RuntimeException("Stub!"); 84 } 85 getTotalIn()86 public int getTotalIn() { 87 throw new RuntimeException("Stub!"); 88 } 89 getBytesRead()90 public long getBytesRead() { 91 throw new RuntimeException("Stub!"); 92 } 93 getTotalOut()94 public int getTotalOut() { 95 throw new RuntimeException("Stub!"); 96 } 97 getBytesWritten()98 public long getBytesWritten() { 99 throw new RuntimeException("Stub!"); 100 } 101 reset()102 public void reset() { 103 throw new RuntimeException("Stub!"); 104 } 105 end()106 public void end() { 107 throw new RuntimeException("Stub!"); 108 } 109 finalize()110 protected void finalize() { 111 throw new RuntimeException("Stub!"); 112 } 113 ensureOpen()114 private void ensureOpen() { 115 throw new RuntimeException("Stub!"); 116 } 117 ended()118 boolean ended() { 119 throw new RuntimeException("Stub!"); 120 } 121 init(boolean nowrap)122 private static native long init(boolean nowrap); 123 setDictionary(long addr, byte[] b, int off, int len)124 private static native void setDictionary(long addr, byte[] b, int off, int len); 125 inflateBytes(long addr, byte[] b, int off, int len)126 private native int inflateBytes(long addr, byte[] b, int off, int len) 127 throws java.util.zip.DataFormatException; 128 getAdler(long addr)129 private static native int getAdler(long addr); 130 reset(long addr)131 private static native void reset(long addr); 132 end(long addr)133 private static native void end(long addr); 134 135 @UnsupportedAppUsage 136 private byte[] buf; 137 138 private long bytesRead; 139 140 private long bytesWritten; 141 142 private static final byte[] defaultBuf; 143 144 static { 145 defaultBuf = new byte[0]; 146 } 147 148 @UnsupportedAppUsage 149 private boolean finished; 150 151 private final dalvik.system.CloseGuard guard; 152 153 { 154 guard = null; 155 } 156 157 @UnsupportedAppUsage 158 private int len; 159 160 @UnsupportedAppUsage 161 private boolean needDict; 162 163 @UnsupportedAppUsage 164 private int off; 165 166 private final java.util.zip.ZStreamRef zsRef; 167 168 { 169 zsRef = null; 170 } 171 } 172