[no subject]



InputStream rawStream = new FileInputStream("/tmp/foo.zip");
ZipInputStream zip = new ZipInputStream(rawStream);
ZipEntry entry = zip.nextEntry();
System.out.println("Got zip entry: " + entry.getPath());
InputStream nestedStream = entry.getStream();
System.out.println("Entry contents: " +
nestedStream.readTheWholeBloodyStream());
// Do the zip.nextEntry() entry dance until we have read all entries

-- 
Cheers,
Mikkel

[1]: And because I include arbitrary made up statistics I
automatically loose this argument ;-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]