info.magnolia.imaging
Interface ImageStreamer<P>
- Type Parameters:
P
- type of ParameterProvider's parameter
- All Known Implementing Classes:
- CachingImageStreamer, DefaultImageStreamer
public interface ImageStreamer<P>
An ImageStreamer is responsible for pushing a generated image (with the given
generator and parameter) to an OutputStream.
This isn't the best name, because really, it doesn't "stream" much.
- Version:
- $Id$
serveImage
void serveImage(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> params,
OutputStream out)
throws ImagingException,
IOException
- Generates an image (if deemed necessary) with the given ImageGenerator and Parameters, streams it to
the given OutputStream.
- Throws:
ImagingException
IOException
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.