Index: src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java,v
retrieving revision 1.4
diff -u -r1.4 ZipArchiveSerializer.java
--- src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java	23 May 2003 09:53:46 -0000	1.4
+++ src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java	12 Jun 2003 11:33:11 -0000
@@ -111,10 +111,10 @@
 // TODO (2) : handle more attributes on <entry> for properties of ZipEntry
 //            (compression method and level, time, comment, etc.)
 
-public class ZipArchiveSerializer 
-    extends AbstractSerializer 
+public class ZipArchiveSerializer
+    extends AbstractSerializer
     implements Composable, Disposable {
-        
+
     /**
      * The namespace for elements handled by this serializer,
      * "http://apache.org/cocoon/zip-archive/1.0".
@@ -288,10 +288,24 @@
                 new SAXException("Cannot specify both 'src' and 'serializer' on a Zip entry '" + name + "'");
         }
 
+        String method = atts.getValue("method");
+        if (method!=null) {
+            if (!method.equalsIgnoreCase("STORED") && !method.equalsIgnoreCase("DEFLATED")) {
+                throw this.exception =
+                   new SAXException("Method attribute must be either STORED or DEFLATED");
+            }
+        }
         Source source = null;
         try {
             // Create a new Zip entry
             ZipEntry entry = new ZipEntry(name);
+
+            if ("STORED".equalsIgnoreCase(method)) {
+                entry.setMethod(ZipEntry.STORED);
+            } else if ("DEFLATED".equalsIgnoreCase(method)) {
+                entry.setMethod(ZipEntry.DEFLATED);
+            }
+
             this.zipOutput.putNextEntry(entry);
 
             if (src != null) {
