ANTS v2.0 API

ants.util
Class ClassPathReader

java.lang.Object
  |
  +--ants.util.ClassPathReader

Deprecated. Replaced by the Janos Java NodeOS class loading facilities.

public class ClassPathReader
extends java.lang.Object
implements ByteCodeReader

This class implements the ByteCodeReader interface based on a "CLASSPATH" which can be given as a parameter.

XXX throws 'Exception' in a bunch of places. Should have its own exception class.

XXX no longer used (everyone uses the Janos Java NodeOS APIs now).

Author:
Utah Janos Team

Constructor Summary
ClassPathReader()
          Deprecated. Use the system property 'java.class.path' as the default classpath to search.
ClassPathReader(java.lang.String pathstr)
          Deprecated. Build a class path from the specified path string
 
Method Summary
 byte[] readByteCode(java.lang.String classname)
          Deprecated. Resolve a class name of the form foo.bar.baz Searches the classpath given to the constructor.
 java.lang.String toString()
          Deprecated. convert to printable form
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassPathReader

public ClassPathReader()
Deprecated. 
Use the system property 'java.class.path' as the default classpath to search.

ClassPathReader

public ClassPathReader(java.lang.String pathstr)
Deprecated. 
Build a class path from the specified path string
Parameters:
pathstr - the CLASSPATH to use for future class searches.
Method Detail

readByteCode

public byte[] readByteCode(java.lang.String classname)
                    throws java.lang.Exception
Deprecated. 
Resolve a class name of the form foo.bar.baz Searches the classpath given to the constructor.
Specified by:
readByteCode in interface ByteCodeReader
Parameters:
classname - fully qualified class name
Returns:
byte[] array of bytes containing .class file

toString

public java.lang.String toString()
Deprecated. 
convert to printable form
Overrides:
toString in class java.lang.Object
Returns:
String describing this class path

ANTS v2.0 API

This documentation is Copyright (C) 1998-2001 The University of Utah and the University of Washington. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for ANTS v2.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/