public abstract class AbstractImageOperation extends Object
Constructor and Description |
---|
AbstractImageOperation() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(InputStream data,
ImageReader reader,
ImageWriter writer)
Executes a concrete image operation.
|
void |
execute(InputStream data,
String mimeType)
Executes an image operation.
|
public void execute(InputStream data, String mimeType) throws GalleryException
data
- the image data. The stream is closed by this method.mimeType
- MIME type of the imageGalleryException
- when the image operation failspublic abstract void execute(InputStream data, ImageReader reader, ImageWriter writer) throws IOException
data
- the image data. Closing the stream is the responsibility of the caller (i.e. this class).reader
- reader for the image datawriter
- writer for the image dataIOException
- when the image operation failsCopyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.