com.sun.jini.tool.classdepend
Class ClasspathPackages
java.lang.Object
com.sun.jini.tool.classdepend.ClasspathPackages
public class ClasspathPackages
- extends Object
Utility class for finding the names of packages in a class path.
Method Summary |
static Set |
compute(String classpath)
Computes the packages in the specified class path. |
static void |
main(String[] args)
Prints the packages in the class path to standard output using the
default character encoding. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathPackages
public ClasspathPackages()
main
public static void main(String[] args)
- Prints the packages in the class path to standard output using the
default character encoding. If an argument is specified, it is used as
the class path, otherwise the system class path is used.
- Parameters:
args
- the arguments
compute
public static Set compute(String classpath)
- Computes the packages in the specified class path. The class path is
interpreted as a list of file names, separated by the
File.pathSeparator
character. Empty names are
treated as the current directory, names ending in the File.separator
character are treated as directories, and
other names are treated as JAR files. Directories or JAR files that
have errors when they are accessed will be ignored.
- Parameters:
classpath
- the class path
- Returns:
- the package names
Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.