SandMark version 2.0


sandmark.util.classloading
Class FileClassFinder

java.lang.Object
  |
  +--sandmark.util.classloading.FileClassFinder
All Implemented Interfaces:
IClassFinder

class FileClassFinder
extends java.lang.Object
implements IClassFinder

Provides a list of classes, short descriptions of those classes, and which of the classes specified in sandmark.util.classloading.IClassFinder the classes derive from, based on the contents of Algorithms.txt, a text file found by a call to ClassLoader.getSystemClassLoader.getResource("Algorithms.txt")

Author:
Andrew Huntwork
See Also:
IClassFinder

Field Summary
 
Fields inherited from interface sandmark.util.classloading.IClassFinder
ALGORITHM, APP_OBFUSCATOR, CLASS_COUNT, CLASS_IDS, CLASS_NAMES, CLASS_OBFUSCATOR, DYN_WATERMARKER, GEN_OBFUSCATOR, GEN_WATERMARKER, GRAPH_CODEC, METHOD_OBFUSCATOR, STAT_WATERMARKER
 
Constructor Summary
FileClassFinder()
           
 
Method Summary
 java.util.Collection getClassesWithAncestor(int algoType)
          Get a Collection of String's containing names of classes that derive from the type specified by ancestor.
 java.lang.String getClassShortname(java.lang.String className)
          Get a string suitable for display to the user that describes className
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileClassFinder

public FileClassFinder()
                throws java.lang.Exception
Method Detail

getClassesWithAncestor

public java.util.Collection getClassesWithAncestor(int algoType)
Description copied from interface: IClassFinder
Get a Collection of String's containing names of classes that derive from the type specified by ancestor.

Specified by:
getClassesWithAncestor in interface IClassFinder
Parameters:
algoType - one of the constants above
Returns:
Collection of String's containing names of classes derived from class specified by ancestor

getClassShortname

public java.lang.String getClassShortname(java.lang.String className)
Description copied from interface: IClassFinder
Get a string suitable for display to the user that describes className

Specified by:
getClassShortname in interface IClassFinder
Parameters:
className - A String returned as a member of a Collection by getClassesWithAncestor
Returns:
A short String description of className

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002