Code example for ZipInputStream

0
import java.io.IOException; 
import java.util.zip.ZipInputStream; 
 
public class ZipInputStreamFactory { 
    public GpxZipInputStream create(String filename) throws IOException { 
        return new GpxZipInputStream(new ZipInputStream(new BufferedInputStream( 
                new FileInputStream(filename)))); 
    } 
}