diff artifacts/src/main/java/de/intevation/artifacts/Artifact.java @ 31:c4d85a8532d1

Artifact.out() is now called with an java.io.Outpustream instead of producing bytes. artifacts/trunk@77 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 12 Sep 2009 10:45:28 +0000
parents d5dc2900392f
children c2d53bd30ab8
line wrap: on
line diff
--- a/artifacts/src/main/java/de/intevation/artifacts/Artifact.java	Thu Sep 10 23:16:18 2009 +0000
+++ b/artifacts/src/main/java/de/intevation/artifacts/Artifact.java	Sat Sep 12 10:45:28 2009 +0000
@@ -3,6 +3,8 @@
 import org.w3c.dom.Document;
 
 import java.io.Serializable;
+import java.io.OutputStream;
+import java.io.IOException;
 
 /**
  * Interface of the core component of the artifact system: <strong>The artifact</strong>.
@@ -76,9 +78,12 @@
      * Produce output from this artifact.
      * @param format Specifies the format of the output.
      * @param context The global context of the runtime system.
-     * @return a byte representation of the output.
      */
-    public byte [] out(Document format, Object context);
+    public void out(
+        Document     format,
+        OutputStream out, 
+        Object       context)
+    throws IOException;
 
     /**
      * When created by a factory this method is called to

http://dive4elements.wald.intevation.org