public final class RCL extends ClassLoader implements Sizeable, Closeable
Constructor and Description |
---|
RCL(Resource[] files,
ClassLoader parent)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
Class |
loadClass(String name)
Loads the class with the specified name.
|
long |
sizeOf()
return the size of the object
|
clearAssertionStatus, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public RCL(Resource[] files, ClassLoader parent) throws IOException
file
- parent
- IOException
public Class loadClass(String name) throws ClassNotFoundException
loadClass(String, boolean)
method. It is called by the Java virtual machine to resolve class
references. Calling this method is equivalent to calling
loadClass(name, false)
.loadClass
in class ClassLoader
name
- the name of the classClass
objectClassNotFoundException
- if the class was not foundpublic InputStream getResourceAsStream(String name)
getResourceAsStream
in class ClassLoader
public URL getResource(String name)
getResource
in class ClassLoader
public long sizeOf()
Sizeable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2015 Lucee