How do I display the contents of a zip file?
Author: Deron Eriksson
Description: This Java tutorial describes how to display the contents of a zip file.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0)


Page: < 1 2

(Continued from page 1)

If we execute DisplayZipContents, we can see that it displays the expected results in the console view, shown at the bottom.

Execution of DisplayZipContents

Displaying the contents of a zip file is that easy. In another tutorial, I'll show how to extract the files from a zip file.

Page: < 1 2