Mercurial > dive4elements > framework
comparison 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 |
comparison
equal
deleted
inserted
replaced
30:88972c6daa4f | 31:c4d85a8532d1 |
---|---|
1 package de.intevation.artifacts; | 1 package de.intevation.artifacts; |
2 | 2 |
3 import org.w3c.dom.Document; | 3 import org.w3c.dom.Document; |
4 | 4 |
5 import java.io.Serializable; | 5 import java.io.Serializable; |
6 import java.io.OutputStream; | |
7 import java.io.IOException; | |
6 | 8 |
7 /** | 9 /** |
8 * Interface of the core component of the artifact system: <strong>The artifact</strong>. | 10 * Interface of the core component of the artifact system: <strong>The artifact</strong>. |
9 * <br> | 11 * <br> |
10 * | 12 * |
74 | 76 |
75 /** | 77 /** |
76 * Produce output from this artifact. | 78 * Produce output from this artifact. |
77 * @param format Specifies the format of the output. | 79 * @param format Specifies the format of the output. |
78 * @param context The global context of the runtime system. | 80 * @param context The global context of the runtime system. |
79 * @return a byte representation of the output. | |
80 */ | 81 */ |
81 public byte [] out(Document format, Object context); | 82 public void out( |
83 Document format, | |
84 OutputStream out, | |
85 Object context) | |
86 throws IOException; | |
82 | 87 |
83 /** | 88 /** |
84 * When created by a factory this method is called to | 89 * When created by a factory this method is called to |
85 * initialize the artifact. | 90 * initialize the artifact. |
86 * @param identifier The identifier from artifact database | 91 * @param identifier The identifier from artifact database |