cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Aston" <>
Subject RE: New ZipArchiveSerializer
Date Sat, 02 Nov 2002 11:26:37 GMT
Hi Sylvain,

The latter is correct.  What you get a *DirectoryGenerator style listing
that shows the properties of any zip files it hits as a whole (last mod,
number of entries etc) and then each entry in the zip file with their
properties e.g. compressed size, uncompressed size etc.

It could, for example, be used in conjunction with the serializer (and some
other bits of code) to build an archive file manager.  I've not checked the
serializer out yet but I am assuming that it works one way only - i.e. from
source to zip.  What might complete the suite is something that grabs a
source from a zip file so you have stuff that will handle both archive and

I've not tested my stuff on Unix or with tar/gz either - if I do that I
might rename to Archive* rather than Zip*.

If it is of enough generic interest then I am more than happy to post the
code for inclusion in the scratchpad - but it's not *that* clever ;-)



 -----Original Message-----
From: 	Sylvain Wallez []
Sent:	31 October 2002 21:25
Subject:	Re: New ZipArchiveSerializer

Sylvain Wallez wrote:

> Jeremy Aston wrote:
>> Very cool,
>> As a demo of how to write a generator for Lajos' and
>> my upcoming Cocoon book I have written a
>> ZipDirectoryGenerator which might augment this.  If
>> anyone is interested in getting the code then let me
>> know.
> Sounds good, but the same can easily be achieved by chaining the
> DirectoryGenerator and the ZipArchiveSerializer through a very simple
> XSL transformation.


I suddenly realize I may have misunderstood what's behind the
ZipDirectoryGenerator. I initially thought about a component that packs
the contents of a directory in a zip archive, but I finally guess it's a
generator that lists the content of a zip archive, as outlined by the
fact that it's a generator.

Which one is right ?


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

To unsubscribe, e-mail:
For additional commands, email:

Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

To unsubscribe, e-mail:
For additional commands, email:

View raw message