public Jar addClass ( Class < ? > clazz ) throws IOException { final String resource = clazz . getName ( ) . replace ( ' ' , ' ' ) + ".class" ; return addEntry ( resource , clazz . getClassLoader ( ) . getResourceAsStream ( resource ) ) ; }
Adds a class entry to this JAR .