> java.util.zip.ZipInputStream should work.
Roedy Green <roedy-look-on-the-website@mindprod.com.invalid> schreef op wo,
05 mei 2004 03:34:24 GMT in news:d5og90l3bu4td5hg9fsc34inggtu4k2m7c@
4ax.com:
>> java.util.zip.ZipInputStream should work.
>
> that unpacks each one in sequence. You want Zip to pick and choose
> what you want.
And how do I do it your way? Is this a class I can use or something? Do you
have a URL where there's something explained? Try entering "java zip" in
google, and you're flooded by unusefull information. :-s
thanx in advance
Tim
Michael Amling - 05 May 2004 12:49 GMT
> Roedy Green <roedy-look-on-the-website@mindprod.com.invalid> schreef op wo,
> 05 mei 2004 03:34:24 GMT in news:d5og90l3bu4td5hg9fsc34inggtu4k2m7c@
[quoted text clipped - 8 lines]
> have a URL where there's something explained? Try entering "java zip" in
> google, and you're flooded by unusefull information. :-s
See
http://java.sun.com/j2se/1.3/docs/api/java/util/zip/ZipInputStream.html
for the API.
--Mike Amling
Roedy Green - 05 May 2004 22:45 GMT
>> that unpacks each one in sequence. You want Zip to pick and choose
>> what you want.
>
>And how do I do it your way? Is this a class I can use or something? Do you
>have a URL where there's something explained? Try entering "java zip" in
>google, and you're flooded by unusefull information. :-s
You did not say if your files were local or remote, or if they are the
in the resource jar.
See http://mindprod.com/jgloss/jar.html
see http://mindprod.com/jgloss/zip.html
the java.util.ZipFile class is what you want if they are local. See
the Javadocs for it.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Michael Amling - 06 May 2004 02:16 GMT
>>> that unpacks each one in sequence. You want Zip to pick and choose
>>>what you want.
[quoted text clipped - 11 lines]
> the java.util.ZipFile class is what you want if they are local. See
> the Javadocs for it.
I agree the OP may find that class more useful. OP, see
http://java.sun.com/j2se/1.3/docs/api/java/util/zip/ZipFile.html for the
API.
BTW, I checked that jar -t and jar -x, which probably use the same
underlying Zip file processing routines as these Zip I/O classes, work
on a sample .sxw file.
--Mike Amling