// Copy entries from the real jar to our virtual jar
for (JarEntry ze = jin.getNextJarEntry(); ze != null; ze = jin.getNextJarEntry()) {
jarOut.putNextEntry(ze);
byte[] b = readEntryBytes(jin, entryDataBuffer);
jarOut.write(b, 0, b.length);
jin.closeEntry();
jarOut.closeEntry();
}
}
finally {
closeStreams(in, jin, out, jarOut);