railo.commons.io.res.util
Class RCL
java.lang.Object
java.lang.ClassLoader
railo.commons.io.res.util.RCL
- All Implemented Interfaces:
- Closeable, Sizeable
public final class RCL
- extends ClassLoader
- implements Sizeable, Closeable
RCL
public RCL(Resource[] files,
ClassLoader parent)
throws IOException
- constructor of the class
- Parameters:
file
- parent
-
- Throws:
IOException
loadClass
public Class loadClass(String name)
throws ClassNotFoundException
- Loads the class with the specified name. This method searches for
classes in the same manner as the
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)
.
- Overrides:
loadClass
in class ClassLoader
- Parameters:
name
- the name of the class
- Returns:
- the resulting
Class
object
- Throws:
ClassNotFoundException
- if the class was not found
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Overrides:
getResourceAsStream
in class ClassLoader
getResource
public URL getResource(String name)
- Overrides:
getResource
in class ClassLoader
sizeOf
public long sizeOf()
- Description copied from interface:
Sizeable
- return the size of the object
- Specified by:
sizeOf
in interface Sizeable
- Returns:
- size of the object
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2012 Railo