public class JarClassLoader extends ClassLoader
Constructor and Description |
---|
JarClassLoader(String... paths) |
Modifier and Type | Method and Description |
---|---|
void |
add(String path) |
Class<?> |
forceLoadClass(String name) |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
InputStream |
getResourceAsStream(String name,
boolean nonSystemOnly) |
Class<?> |
loadClass(String name) |
Class<?> |
loadClass(String name,
boolean resolve) |
Class<?> |
loadClass(String name,
boolean resolve,
boolean forceReload) |
protected static byte[] |
readStream(InputStream in) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public JarClassLoader(String... paths) throws IOException
IOException
public void add(String path) throws IOException
IOException
public URL getResource(String name)
getResource
in class ClassLoader
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
public InputStream getResourceAsStream(String name, boolean nonSystemOnly)
public Class<?> forceLoadClass(String name) throws ClassNotFoundException
ClassNotFoundException
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public Class<?> loadClass(String name, boolean resolve, boolean forceReload) throws ClassNotFoundException
ClassNotFoundException
protected static byte[] readStream(InputStream in) throws IOException
IOException
Copyright © 2015–2022 SciJava. All rights reserved.