org.mmbase.util.images
Class ImageConversionRequest

java.lang.Object
  extended by org.mmbase.util.images.ImageConversionRequest

public class ImageConversionRequest
extends Object

Defines one Image convert request.

Version:
$Id: ImageConversionRequest.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Rico Jansen, Michiel Meeuwissen

Field Summary
protected  String format
           
protected  List<String> params
           
 
Constructor Summary
ImageConversionRequest(byte[] in, String format, ImageConversionReceiver receiver, List<String> params)
           
ImageConversionRequest(InputStream in, String format, ImageConversionReceiver receiver, List<String> params)
           
ImageConversionRequest(List<String> params, byte[] in, String format, MMObjectNode icacheNode)
           
 
Method Summary
(package private)  int count()
          Returns how many request are waiting for the result of this image transformation.
(package private)  byte[] getByteArray()
           
(package private)  InputStream getInput()
          The byte[] on which the conversion must happen.
(package private)  String getInputFormat()
           
(package private)  List<String> getParams()
          The parameters describing the conversion.
 ImageConversionReceiver getReceiver()
           
(package private)  void ready()
           
 void waitForConversion()
          Waits until the conversion result is ready.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected final List<String> params

format

protected String format
Constructor Detail

ImageConversionRequest

public ImageConversionRequest(List<String> params,
                              byte[] in,
                              String format,
                              MMObjectNode icacheNode)

ImageConversionRequest

public ImageConversionRequest(byte[] in,
                              String format,
                              ImageConversionReceiver receiver,
                              List<String> params)
Since:
MMBase-1.9

ImageConversionRequest

public ImageConversionRequest(InputStream in,
                              String format,
                              ImageConversionReceiver receiver,
                              List<String> params)
Method Detail

getParams

List<String> getParams()
The parameters describing the conversion.


getInput

InputStream getInput()
The byte[] on which the conversion must happen.


getByteArray

byte[] getByteArray()
              throws IOException
Throws:
IOException

getInputFormat

String getInputFormat()

getReceiver

public ImageConversionReceiver getReceiver()
Since:
MMBase-1.9

waitForConversion

public void waitForConversion()
Waits until the conversion result is ready.


ready

void ready()

count

int count()
Returns how many request are waiting for the result of this image transformation.



MMBase 2.0-SNAPSHOT - null