public class ClassEnumerationReader
extends java.lang.Object
ClasspathLibraryInfo. Files should have a format similar
to the following:
- com.mycompany.pkg1.Class1 Class2 Class3 - com.mycompany.pkg2.Foo Bar - aonther.pkg.Utils ...Such files are expected to be UTF-8. The exact file structure is as follows:
-" denote a fully-qualified
class, interface, or enum name.
-" are simply a
class, interface, or enum name, and are assumed to be in the same
package as the previous class on the "-" line.
#" are ignored.
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getClassNames(java.io.InputStream in)
Returns the list of classes specified in the given stream.
|
public static java.util.List<java.lang.String> getClassNames(java.io.InputStream in)
throws java.io.IOException
in - The input stream to read from. This will be closed when
this method returns.java.io.IOException - If an IO error occurs.