I found example from SUN site (http://java.sun.com/developer/technicalArticles/Programming/compression/), but it returns BufferedOutputStream. But I would like to get ZipEntry f
Well, just change the part that writes the file into something you want to do with the data.
while((entry = zis.getNextEntry()) != null) {
System.out.println("Extracting: " + entry);
int count;
byte[] data = new byte[BUFFER];
String filename = entry.getName();
System.out.println("Filename: " + filename);
while ((count = zis.read(data, 0, BUFFER)) != -1) {
// Do whatever you want with the data variable
System.out.println(data);
}
}