classUtils.putils
Class ClassPathBean

java.lang.Object
  extended by classUtils.putils.ClassPathBean
All Implemented Interfaces:
java.io.Serializable

public class ClassPathBean
extends java.lang.Object
implements java.io.Serializable

Copyright DocJava, inc. User: lyon Date: Sep 6, 2004 Time: 10:25:51 AM

See Also:
Serialized Form

Constructor Summary
ClassPathBean()
           
 
Method Summary
 void addClassPath(java.lang.String path)
          append a path (with no delimeters) to the internall held vector.
 void addDirectoryToPath()
           
 java.io.File findClass(java.lang.String className)
           
 java.io.File[] getAllClassFilesInDirs()
           
 java.lang.String getClassPath()
           
 java.lang.String[] getClassPaths()
           
 java.net.URL[] getClassPathUrls()
           
 java.io.File[] getDirs()
          Get all the dirs
 java.io.File[] getJars()
          Get all the readable files with a .jar suffix
 java.io.File[] getJarsAndZips()
          Get all the readable files with a .zip suffix
 java.util.Enumeration getPathEnumeration()
           
 java.io.File[] getZips()
          Get all the readable files with a .zip suffix
static void main(java.lang.String[] args)
           
static void print(java.lang.Object[] o)
           
 void printJars()
           
static ClassPathBean restore()
          restores the properties from the preference in the user root.
 void save()
          saves the properties to the Preferences of the userRoot
 void setClassPath(java.lang.String classPath)
          Erase internally held class path and erase it with the long path delimited string.
 void setClassPaths(java.lang.String[] classPaths)
          Overwrite the internally held vector.
static void testClassNameToPath()
           
 java.lang.String toString()
           
static void updatePreferencesWithCurrentPath()
          This will wipe out the old paths stored in preferences, in favor of the new path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassPathBean

public ClassPathBean()
Method Detail

testClassNameToPath

public static void testClassNameToPath()

main

public static void main(java.lang.String[] args)

findClass

public java.io.File findClass(java.lang.String className)

addDirectoryToPath

public void addDirectoryToPath()

print

public static void print(java.lang.Object[] o)

updatePreferencesWithCurrentPath

public static void updatePreferencesWithCurrentPath()
This will wipe out the old paths stored in preferences, in favor of the new path.


getClassPath

public java.lang.String getClassPath()

getPathEnumeration

public java.util.Enumeration getPathEnumeration()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getClassPaths

public java.lang.String[] getClassPaths()

addClassPath

public void addClassPath(java.lang.String path)
append a path (with no delimeters) to the internall held vector. Can be a dir or a jar.


setClassPaths

public void setClassPaths(java.lang.String[] classPaths)
Overwrite the internally held vector.


save

public void save()
saves the properties to the Preferences of the userRoot


restore

public static ClassPathBean restore()
restores the properties from the preference in the user root.


getJars

public java.io.File[] getJars()
Get all the readable files with a .jar suffix


getAllClassFilesInDirs

public java.io.File[] getAllClassFilesInDirs()

getDirs

public java.io.File[] getDirs()
Get all the dirs


getJarsAndZips

public java.io.File[] getJarsAndZips()
Get all the readable files with a .zip suffix


getZips

public java.io.File[] getZips()
Get all the readable files with a .zip suffix


setClassPath

public void setClassPath(java.lang.String classPath)
Erase internally held class path and erase it with the long path delimited string.


getClassPathUrls

public java.net.URL[] getClassPathUrls()

printJars

public void printJars()