1 /*
2  * Copyright (c) 1997, 2015, 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 java.net;
27 
28 import android.compat.annotation.UnsupportedAppUsage;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public class URLClassLoader extends java.security.SecureClassLoader implements java.io.Closeable {
32 
33     public URLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent) {
34         throw new RuntimeException("Stub!");
35     }
36 
37     URLClassLoader(
38             java.net.URL[] urls,
39             java.lang.ClassLoader parent,
40             java.security.AccessControlContext acc) {
41         throw new RuntimeException("Stub!");
42     }
43 
44     public URLClassLoader(java.net.URL[] urls) {
45         throw new RuntimeException("Stub!");
46     }
47 
48     URLClassLoader(java.net.URL[] urls, java.security.AccessControlContext acc) {
49         throw new RuntimeException("Stub!");
50     }
51 
52     public URLClassLoader(
53             java.net.URL[] urls,
54             java.lang.ClassLoader parent,
55             java.net.URLStreamHandlerFactory factory) {
56         throw new RuntimeException("Stub!");
57     }
58 
59     public java.io.InputStream getResourceAsStream(java.lang.String name) {
60         throw new RuntimeException("Stub!");
61     }
62 
63     public void close() throws java.io.IOException {
64         throw new RuntimeException("Stub!");
65     }
66 
67     protected void addURL(java.net.URL url) {
68         throw new RuntimeException("Stub!");
69     }
70 
71     public java.net.URL[] getURLs() {
72         throw new RuntimeException("Stub!");
73     }
74 
75     protected java.lang.Class<?> findClass(java.lang.String name)
76             throws java.lang.ClassNotFoundException {
77         throw new RuntimeException("Stub!");
78     }
79 
80     private java.lang.Package getAndVerifyPackage(
81             java.lang.String pkgname, java.util.jar.Manifest man, java.net.URL url) {
82         throw new RuntimeException("Stub!");
83     }
84 
85     private void definePackageInternal(
86             java.lang.String pkgname, java.util.jar.Manifest man, java.net.URL url) {
87         throw new RuntimeException("Stub!");
88     }
89 
90     private java.lang.Class<?> defineClass(java.lang.String name, sun.misc.Resource res)
91             throws java.io.IOException {
92         throw new RuntimeException("Stub!");
93     }
94 
95     protected java.lang.Package definePackage(
96             java.lang.String name, java.util.jar.Manifest man, java.net.URL url)
97             throws java.lang.IllegalArgumentException {
98         throw new RuntimeException("Stub!");
99     }
100 
101     private boolean isSealed(java.lang.String name, java.util.jar.Manifest man) {
102         throw new RuntimeException("Stub!");
103     }
104 
105     public java.net.URL findResource(java.lang.String name) {
106         throw new RuntimeException("Stub!");
107     }
108 
109     public java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
110             throws java.io.IOException {
111         throw new RuntimeException("Stub!");
112     }
113 
114     protected java.security.PermissionCollection getPermissions(
115             java.security.CodeSource codesource) {
116         throw new RuntimeException("Stub!");
117     }
118 
119     public static java.net.URLClassLoader newInstance(
120             java.net.URL[] urls, java.lang.ClassLoader parent) {
121         throw new RuntimeException("Stub!");
122     }
123 
124     public static java.net.URLClassLoader newInstance(java.net.URL[] urls) {
125         throw new RuntimeException("Stub!");
126     }
127 
128     @UnsupportedAppUsage
129     private final java.security.AccessControlContext acc;
130 
131     {
132         acc = null;
133     }
134 
135     private java.util.WeakHashMap<java.io.Closeable, java.lang.Void> closeables;
136 
137     @UnsupportedAppUsage
138     private final sun.misc.URLClassPath ucp;
139 
140     {
141         ucp = null;
142     }
143 }
144