public static void index(final Indexer indexer, final ClassLoader cl, final String className) {
        final InputStream stream = cl.getResourceAsStream(className.replace('.', '/') + ".class");
        try {
            indexer.index(stream);
        } catch (final IOException ex) {
            throw new RuntimeException(ex);
        }
    }
public static void index ( final Indexer indexer , final ClassLoader cl , final String className ) { final InputStream stream = cl . getResourceAsStream ( className . replace ( '.' , '/' ) + ".class" ) ; try { indexer . index ( stream ) ; } catch ( final IOException ex ) { throw new RuntimeException ( ex ) ; } }
Indexes a class by it's name.

@param indexer
Indexer to use.
@param cl
Class loader to use.
@param className
Full qualified name of the class.