sascha@29: package de.intevation.artifactdatabase.rest; sascha@29: sascha@29: import org.restlet.representation.OutputRepresentation; sascha@29: sascha@29: import org.restlet.data.MediaType; sascha@29: sascha@32: import de.intevation.artifacts.ArtifactDatabase.DeferredOutput; sascha@32: sascha@29: import java.io.IOException; sascha@32: import java.io.OutputStream; sascha@29: sascha@29: /** sascha@29: * @author Sascha L. Teichmann (sascha.teichmann@intevation) sascha@29: */ sascha@29: public class OutRepresentation sascha@29: extends OutputRepresentation sascha@29: { sascha@32: protected DeferredOutput out; sascha@29: sascha@32: public OutRepresentation(MediaType mediaType, DeferredOutput out) { sascha@29: super(mediaType); sascha@32: this.out = out; sascha@29: } sascha@29: sascha@32: public void write(OutputStream output) throws IOException { sascha@32: out.write(output); sascha@29: } sascha@29: } sascha@29: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: