Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.dghda.module
Class StreamClassLoader  view StreamClassLoader download StreamClassLoader.java

java.lang.Object
  extended byjava.lang.ClassLoader
      extended bycom.dghda.module.StreamClassLoader

public class StreamClassLoader
extends java.lang.ClassLoader

A class loader which will attempt to load a classes from a stream.


Nested Class Summary
 
Nested classes inherited from class java.lang.ClassLoader
 
Field Summary
 
Fields inherited from class java.lang.ClassLoader
 
Constructor Summary
StreamClassLoader()
          Creates a new stream class loader using the system class loader as its parent.
StreamClassLoader(java.lang.ClassLoader parent)
          Creates a new file class loader using the given class loader as its parent.
 
Method Summary
 java.lang.Class loadClass(java.lang.String name, java.io.InputStream in)
          Attempts to load a class from the given stream, and instatiate an instance of it.
protected static byte[] loadClassData(java.io.InputStream input)
          Loads class data from the class file.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamClassLoader

public StreamClassLoader()
Creates a new stream class loader using the system class loader as its parent.


StreamClassLoader

public StreamClassLoader(java.lang.ClassLoader parent)
Creates a new file class loader using the given class loader as its parent.

Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 java.io.InputStream in)
                          throws java.io.IOException,
                                 java.lang.IllegalAccessException
Attempts to load a class from the given stream, and instatiate an instance of it.


loadClassData

protected static byte[] loadClassData(java.io.InputStream input)
                               throws java.io.IOException
Loads class data from the class file.