comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/OutRepresentation.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 22b03d5c84c5
children c2d53bd30ab8
comparison
equal deleted inserted replaced
30:88972c6daa4f 31:c4d85a8532d1
32 this.document = document; 32 this.document = document;
33 this.context = context; 33 this.context = context;
34 } 34 }
35 35
36 public void write(OutputStream outputStream) throws IOException { 36 public void write(OutputStream outputStream) throws IOException {
37 byte [] bytes = artifact.out(document, context); 37 artifact.out(document, outputStream, context);
38 outputStream.write(bytes);
39 } 38 }
40 } 39 }
41 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: 40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org