1 /* 2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.misc; 27 28 import java.io.*; 29 import java.util.*; 30 import java.util.jar.*; 31 import java.util.zip.*; 32 33 @SuppressWarnings({"unchecked", "deprecation", "all"}) 34 public class JarIndex { 35 JarIndex()36 public JarIndex() { 37 throw new RuntimeException("Stub!"); 38 } 39 JarIndex(java.io.InputStream is)40 public JarIndex(java.io.InputStream is) throws java.io.IOException { 41 throw new RuntimeException("Stub!"); 42 } 43 44 @dalvik.annotation.compat.UnsupportedAppUsage JarIndex(java.lang.String[] files)45 public JarIndex(java.lang.String[] files) throws java.io.IOException { 46 throw new RuntimeException("Stub!"); 47 } 48 getJarIndex(java.util.jar.JarFile jar)49 public static sun.misc.JarIndex getJarIndex(java.util.jar.JarFile jar) 50 throws java.io.IOException { 51 throw new RuntimeException("Stub!"); 52 } 53 getJarIndex( java.util.jar.JarFile jar, sun.misc.MetaIndex metaIndex)54 public static sun.misc.JarIndex getJarIndex( 55 java.util.jar.JarFile jar, sun.misc.MetaIndex metaIndex) throws java.io.IOException { 56 throw new RuntimeException("Stub!"); 57 } 58 getJarFiles()59 public java.lang.String[] getJarFiles() { 60 throw new RuntimeException("Stub!"); 61 } 62 addToList( java.lang.String key, java.lang.String value, java.util.HashMap<java.lang.String, java.util.LinkedList<java.lang.String>> t)63 private void addToList( 64 java.lang.String key, 65 java.lang.String value, 66 java.util.HashMap<java.lang.String, java.util.LinkedList<java.lang.String>> t) { 67 throw new RuntimeException("Stub!"); 68 } 69 get(java.lang.String fileName)70 public java.util.LinkedList<java.lang.String> get(java.lang.String fileName) { 71 throw new RuntimeException("Stub!"); 72 } 73 add(java.lang.String fileName, java.lang.String jarName)74 public void add(java.lang.String fileName, java.lang.String jarName) { 75 throw new RuntimeException("Stub!"); 76 } 77 addMapping(java.lang.String jarItem, java.lang.String jarName)78 private void addMapping(java.lang.String jarItem, java.lang.String jarName) { 79 throw new RuntimeException("Stub!"); 80 } 81 parseJars(java.lang.String[] files)82 private void parseJars(java.lang.String[] files) throws java.io.IOException { 83 throw new RuntimeException("Stub!"); 84 } 85 86 @dalvik.annotation.compat.UnsupportedAppUsage write(java.io.OutputStream out)87 public void write(java.io.OutputStream out) throws java.io.IOException { 88 throw new RuntimeException("Stub!"); 89 } 90 read(java.io.InputStream is)91 public void read(java.io.InputStream is) throws java.io.IOException { 92 throw new RuntimeException("Stub!"); 93 } 94 merge(sun.misc.JarIndex toIndex, java.lang.String path)95 public void merge(sun.misc.JarIndex toIndex, java.lang.String path) { 96 throw new RuntimeException("Stub!"); 97 } 98 99 public static final java.lang.String INDEX_NAME = "META-INF/INDEX.LIST"; 100 101 private java.util.HashMap<java.lang.String, java.util.LinkedList<java.lang.String>> indexMap; 102 103 private java.lang.String[] jarFiles; 104 105 private java.util.HashMap<java.lang.String, java.util.LinkedList<java.lang.String>> jarMap; 106 107 private static final boolean metaInfFilenames; 108 109 static { 110 metaInfFilenames = false; 111 } 112 } 113