Ivelin Ivanov wrote: > > Good idea. > > Maybe not to AbstractSerializable because jpg and gif are not likely to be > comressed. > > However a helper class would be nice. So that serializers like svg, html, > xml, etc. can take an optional "compression" parameter.
That was also my first intention, but as others said, it should be the task of the container to do the job of compression (depending on the url pattern). I sent a patch for web.xml for this. This is the fastest solution. But: E.g. tomcat looks into the Request Header if the browser accepts gzip or zip. I you have a download programm which doesn't send this accept header, tomcat does not compress the output. Maybe for this or also to be independant of any url pattern a Helper class and a "compression" parameter to the serializer would be of interest. > > Ivelin Michael > > ----- Original Message ----- > From: "Enke, Michael" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 31, 2002 10:51 AM > Subject: Re: New ZipArchiveSerializer > > > Cool. > > But two questions: > > 1) can we configure if zip or gzip? > > 2) wouldn't it be better to add zip/gzip functionallity to > > AbstractSerializer so that we have it for all? > > I thing that someone want to have html zipped ... > > > > Michael > > > > > > Sylvain Wallez wrote: > > > > > > Hi team, > > > > > > I just added a new ZipArchiveSerializer that builds a zip file whose > > > entries are fetched from sources (including all of our fancy protocols). > > > > > > I wrote this to generate OpenOffice files, but this can be used to > > > generate any zip-based file format. > > > > > > Enjoy ! > > > > > > Sylvain > > > PS : I even wrote a (minimal) documentation ;-) > > > > > > -- > > > Sylvain Wallez Anyware Technologies > > > http://www.apache.org/~sylvain http://www.anyware-tech.com > > > { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]