JET

edu.utep.cs.et.gui
Class AbstractClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by edu.utep.cs.et.gui.AbstractClassLoader
Direct Known Subclasses:
FileClassLoader, ToolActionFactory.ClassFileReader

public class AbstractClassLoader
extends URLClassLoader

An abstract class loader that takes into account of the user-defined classpath.

Author:
Yoonsik Cheon

Field Summary
private static String PATH_SEPARATOR
          system specific path separator.
 
Constructor Summary
protected AbstractClassLoader()
          Creates a new loader.
 
Method Summary
private  void addClasspath()
          Adds user-defined classpath to URLs.
protected  byte[] loadClassData(DataInputStream input)
          Reads bytes from the given data input stream.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, 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
 

Field Detail

PATH_SEPARATOR

private static final String PATH_SEPARATOR
system specific path separator.

Constructor Detail

AbstractClassLoader

protected AbstractClassLoader()
Creates a new loader.

Method Detail

addClasspath

private void addClasspath()
                   throws MalformedURLException
Adds user-defined classpath to URLs.

Throws:
MalformedURLException

loadClassData

protected byte[] loadClassData(DataInputStream input)
                        throws IOException
Reads bytes from the given data input stream. The read bytes are supposed to be bytecode.

Throws:
IOException

JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.