Is there a standard or thirdparty library for opening Zip Files?

153 views
Skip to first unread message

djh

unread,
Feb 24, 2011, 5:39:41 PM2/24/11
to scala-user
I know you can use java.util.zip but I'm really looking for something
that has all of the scala goodies thrown in.

I've found a ZipArchive class in the scala.tools.nsc.io package which
offers pretty much *exactly* what I am looking for, but I've been told
that:-

a) This is part of the compiler tools
b) Is liable to change between releases.

So I was wondering if anyone has written a wrapper for java.util.zip
or something similar to the stuff above?

Thanks for any help.
Message has been deleted

Naftoli Gugenheim

unread,
Feb 24, 2011, 10:44:36 PM2/24/11
to djh, scala-user
If you keep the relevant compiler sources with your project sources, you probably don't have to worry too much about future changes.

Jason Zaugg

unread,
Feb 25, 2011, 3:32:39 AM2/25/11
to djh, scala-user
On Thu, Feb 24, 2011 at 11:39 PM, djh <djhar...@gmail.com> wrote:
> I know you can use java.util.zip but I'm really looking for something
> that has all of the scala goodies thrown in.

> So I was wondering if anyone has written a wrapper for java.util.zip


> or something similar to the stuff above?

Apache Commons VFS [1] makes dealing with archives fairly tolerable.
It's just a Java lib.

-jason

[1] http://commons.apache.org/vfs/filesystems.html

Randall R Schulz

unread,
Feb 25, 2011, 9:45:42 AM2/25/11
to scala...@googlegroups.com
On Thursday February 24 2011, Randall Schulz wrote:
> The standard Java libraries include PKZIP handling in the java.zip
> package (JAR files are PKZIP files, after all).
>
> Randall Schulz

After the inevitable Duh! moment caused by this post (about 5 seconds
after clicking Send in the Groups Web interface), I deleted it.
Apparently they don't wait to post the email for dullards like me...


RRS

djh

unread,
Feb 26, 2011, 3:05:49 PM2/26/11
to scala-user
Thanks, this seems to do the trick pretty well.

On Feb 25, 8:32 am, Jason Zaugg <jza...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages