void createJar(FileOutputStream outStream,Map<String,byte[]> all) throws IOException {
  JarOutputStream jar=new JarOutputStream(outStream);
  for (  Entry<String,byte[]> entry : all.entrySet()) {
    String name=entry.getKey();
    JarEntry jar_entry=new JarEntry(name);
    jar.putNextEntry(jar_entry);
    jar.write(entry.getValue());
    jar.closeEntry();
  }
  jar.flush();
  jar.close();
}

void createJar ( FileOutputStream outStream , Map < String , byte [ ] > all ) throws IOException { JarOutputStream jar = new JarOutputStream ( outStream ) ; for ( Entry < String , byte [ ] > entry : all . entrySet ( ) ) { String name = entry . getKey ( ) ; JarEntry jar_entry = new JarEntry ( name ) ; jar . putNextEntry ( jar_entry ) ; jar . write ( entry . getValue ( ) ) ; jar . closeEntry ( ) ; } jar . flush ( ) ; jar . close ( ) ; }
writes the jar file .
