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
-
ClassPath()
- Search for classes in CLASSPATH.
-
ClassPath(String)
- Search for classes in given path.
-
getBytes(String)
-
-
getBytes(String, String)
-
-
getClassFile(String)
-
-
getClassFile(String, String)
-
-
getInputStream(String)
-
-
getInputStream(String, String)
-
-
getPath(String)
-
-
getPath(String, String)
-
ClassPath
public ClassPath(String class_path)
- Search for classes in given path.
ClassPath
public ClassPath()
- Search for classes in CLASSPATH.
getInputStream
public InputStream getInputStream(String name) throws IOException
- Parameters:
- name - fully qualified class name, e.g. java.lang.String
- Returns:
- input stream for class
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
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
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
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
getBytes
public byte[] getBytes(String name) throws IOException
- Returns:
- byte array for class
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
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