Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail NNTP-Posting-Date: Fri, 24 Jun 2011 22:11:38 -0500 Date: Fri, 24 Jun 2011 20:11:38 -0700 From: Peter Duniho User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: trying to feed a zip file containing an XML one to a SAX parser ... References: <1308968121.989150@nntp.aceinnovative.com> In-Reply-To: <1308968121.989150@nntp.aceinnovative.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 10 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 50.46.118.188 X-Trace: sv3-aa6BCESXnRAsy/JHT05LCwr0fNBVBGjFE+3QpTcrhyUqjZHD5x8z/vOM92DyZM9dg7HozNF1VKcc97k!pw84nGszE5pSlJ9xxbMQWSsmWIKPsLXLH6oHL9r8dduIEC4qhrOWjthOU21pLIVBZDB3W3BqhO+Y!w1Ou3Pv27eJc8PnoFPMI7tDBadZ/IcCVrRSGw7FNcRo= X-Complaints-To: abuse@iinet.com X-DMCA-Complaints-To: abuse@iinet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1762 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5664 On 6/24/11 7:15 PM, lbrt chx _ gemale kom wrote: > ~ > the simple code below I use to feed an XMLReader with compressed ".bz2" and ".gz" > ~ > Since the zip file format is a container as well, I could imagine things are not that simple > ~ > How can you do the same (or a similar) thing with a zip file? You might start here: http://download.oracle.com/javase/6/docs/api/java/util/zip/ZipFile.html