Package com.intergral.deep.tests.inst
Class ByteClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- com.intergral.deep.tests.inst.ByteClassLoader
-
public class ByteClassLoader extends ClassLoader
-
-
Constructor Summary
Constructors Constructor Description ByteClassLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<?>
findClass(String name)
static ByteClassLoader
forFile(String name)
byte[]
getBytes(String name)
static byte[]
loadBytes(String name)
Class<?>
loadClass(String name)
void
setBytes(String name, byte[] bytes)
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
loadBytes
public static byte[] loadBytes(String name) throws IOException
- Throws:
IOException
-
forFile
public static ByteClassLoader forFile(String name) throws IOException
- Throws:
IOException
-
setBytes
public void setBytes(String name, byte[] bytes)
-
getBytes
public byte[] getBytes(String name)
-
loadClass
public Class<?> loadClass(String name) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
findClass
protected Class<?> findClass(String name) throws ClassNotFoundException
- Overrides:
findClass
in classClassLoader
- Throws:
ClassNotFoundException
-
-