private String classToEntryPath(Class<?> clazz){
  String name="";
  Class<?> parent;
  while ((parent=clazz.getEnclosingClass()) != null) {
    name="$" + clazz.getSimpleName() + name;
    clazz=parent;
  }
  return classNameToEntryPath(clazz.getCanonicalName() + name);
}

private String classToEntryPath ( Class < ? > clazz ) { String name = "" ; Class < ? > parent ; while ( ( parent = clazz . getEnclosingClass ( ) ) != null ) { name = "$" + clazz . getSimpleName ( ) + name ; clazz = parent ; } return classNameToEntryPath ( clazz . getCanonicalName ( ) + name ) ; }
utility method to get the jar entry path from a class name . e . g . it returns someting like " com / foo / outerclass $ innerclass1 $ innerclass2 . class "
