P
- type of ParameterProvider's parameterpublic class DefaultImageStreamer<P> extends Object implements ImageStreamer<P>
Constructor and Description |
---|
DefaultImageStreamer() |
Modifier and Type | Method and Description |
---|---|
void |
serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out)
Generates an image (if deemed necessary) with the given ImageGenerator and Parameters, streams it to
the given OutputStream.
|
protected void |
write(BufferedImage img,
OutputStream out,
OutputFormat outputFormat) |
public void serveImage(ImageGenerator<ParameterProvider<P>> generator, ParameterProvider<P> params, OutputStream out) throws ImagingException, IOException
ImageStreamer
serveImage
in interface ImageStreamer<P>
ImagingException
IOException
protected void write(BufferedImage img, OutputStream out, OutputFormat outputFormat) throws IOException
IOException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.