Package jminusminus

Class CLPath

java.lang.Object
jminusminus.CLPath

class CLPath extends Object
This class can be used to locate and load system, extension, and user-defined class files from directories and zip (jar) files.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a CLPath object.
    CLPath(String path, String extdir)
    Constructs a CLPath object given the directory names defining the path and the directory for the Java extension classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a CLInputStream instance for the class with specified name (fully-qualified; tokens separated by '/') or null if the class was not found.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CLPath

      public CLPath()
      Constructs a CLPath object.
    • CLPath

      public CLPath(String path, String extdir)
      Constructs a CLPath object given the directory names defining the path and the directory for the Java extension classes.
      Parameters:
      path - the directory names defining the class path, separated by path separator.
      extdir - the directory for the Java extension classes.
  • Method Details

    • loadClass

      public CLInputStream loadClass(String name)
      Returns a CLInputStream instance for the class with specified name (fully-qualified; tokens separated by '/') or null if the class was not found.
      Parameters:
      name - the fully-qualified name of the class (eg, java/util/ArrayList).
      Returns:
      a CLInputStream instance for the class with specified name or null if the class was not found.