All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.ClassPath

java.lang.Object
   |
   +----de.fub.bytecode.ClassPath

public class ClassPath
extends Object
Responsible for loading (class) files from CLASSPATH. Inspired by sun.tools.ClassPath.

Version:
$Id: ClassPath.java,v 1.9 2000/02/17 13:41:30 dahm Exp $
Author:
M. Dahm

Constructor Index

 o ClassPath()
Search for classes in CLASSPATH.
 o ClassPath(String)
Search for classes in given path.

Method Index

 o getBytes(String)
 o getBytes(String, String)
 o getClassFile(String)
 o getClassFile(String, String)
 o getInputStream(String)
 o getInputStream(String, String)
 o getPath(String)
 o getPath(String, String)

Constructors

 o ClassPath
 public ClassPath(String class_path)
Search for classes in given path.

 o ClassPath
 public ClassPath()
Search for classes in CLASSPATH.

Methods

 o getInputStream
 public InputStream getInputStream(String name) throws IOException
Parameters:
name - fully qualified class name, e.g. java.lang.String
Returns:
input stream for class
 o getInputStream
 public InputStream getInputStream(String name,
                                   String suffix) throws IOException
Parameters:
name - fully qualified file name, e.g. java/lang/String
suffix - file name ends with suff, e.g. .java
Returns:
input stream for file on class path
 o getClassFile
 public ClassPath. ClassFile getClassFile(String name,
                                          String suffix) throws IOException
Parameters:
name - fully qualified file name, e.g. java/lang/String
suffix - file name ends with suff, e.g. .java
Returns:
class file for the java class
 o getClassFile
 public ClassPath. ClassFile getClassFile(String name) throws IOException
Parameters:
name - fully qualified class name, e.g. java.lang.String
Returns:
input stream for class
 o getBytes
 public byte[] getBytes(String name,
                        String suffix) throws IOException
Parameters:
name - fully qualified file name, e.g. java/lang/String
suffix - file name ends with suffix, e.g. .java
Returns:
byte array for file on class path
 o getBytes
 public byte[] getBytes(String name) throws IOException
Returns:
byte array for class
 o getPath
 public String getPath(String name) throws IOException
Parameters:
name - name of file to search for, e.g. java/lang/String.java
Returns:
full (canonical) path for file
 o getPath
 public String getPath(String name,
                       String suffix) throws IOException
Parameters:
name - name of file to search for, e.g. java/lang/String
suffix - file name suffix, e.g. .java
Returns:
full (canonical) path for file, if it exists

All Packages  Class Hierarchy  This Package  Previous  Next  Index