public static Map<String,byte[]> loadNonClassEntries(File jarFile) throws IOException {
  Map<String,byte[]> entries=new HashMap<String,byte[]>();
  ZipInputStream jis=new ZipInputStream(new FileInputStream(jarFile));
  ZipEntry entry;
  while ((entry=jis.getNextEntry()) != null) {
    try {
      final String name=entry.getName();
      if (!name.endsWith(".class") && !entry.isDirectory()) {
        byte[] bytes=IOUtils.toByteArray(jis);
        entries.put(name,bytes);
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
 finally {
      jis.closeEntry();
    }
  }
  jis.close();
  return entries;
}

public static Map < String , byte [ ] > loadNonClassEntries ( File jarFile ) throws IOException { Map < String , byte [ ] > entries = new HashMap < String , byte [ ] > ( ) ; ZipInputStream jis = new ZipInputStream ( new FileInputStream ( jarFile ) ) ; ZipEntry entry ; while ( ( entry = jis . getNextEntry ( ) ) != null ) { try { final String name = entry . getName ( ) ; if ( ! name . endsWith ( ".class" ) && ! entry . isDirectory ( ) ) { byte [ ] bytes = IOUtils . toByteArray ( jis ) ; entries . put ( name , bytes ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { jis . closeEntry ( ) ; } } jis . close ( ) ; return entries ; }
creates a map of < string ( entry name ) , byte [ ] > for a given jar file
