1 23 24 29 30 package com.sun.enterprise.util.zip; 31 32 37 public class ZipFileTester { 38 39 40 public ZipFileTester() { 41 } 42 43 46 public static void main (String args[]) 47 { 48 try 49 { 50 ZipFile zip = new ZipFile("C:\\temp\\petstore.ear", "C:\\temp\\petstore"); 51 java.util.List l = zip.explode(); 52 System.out.println("**** Filelist ****\n" + l); 53 } 54 catch(Exception e) 55 { 56 System.out.println("error: " + e); 57 e.printStackTrace(); 58 } 59 } 60 61 } 62 | Popular Tags |