org.mmbase.util.images
Class OutputStreamReceiver

java.lang.Object
  extended by org.mmbase.util.images.OutputStreamReceiver
All Implemented Interfaces:
ImageConversionReceiver

public class OutputStreamReceiver
extends Object
implements ImageConversionReceiver

The 'image conversion receiver' storing result directly to an output stream.

Since:
MMBase-1.9.2
Version:
$Id: OutputStreamReceiver.java 36600 2009-07-06 21:55:17Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
OutputStreamReceiver(OutputStream s)
           
 
Method Summary
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 long getSize()
           
 void ready()
           
 void setDimension(Dimension d)
           
 void setSize(long s)
           
 boolean wantsDimension()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamReceiver

public OutputStreamReceiver(OutputStream s)
Method Detail

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface ImageConversionReceiver

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface ImageConversionReceiver
Throws:
IOException

setSize

public void setSize(long s)
Specified by:
setSize in interface ImageConversionReceiver

getSize

public long getSize()
Specified by:
getSize in interface ImageConversionReceiver

wantsDimension

public boolean wantsDimension()
Specified by:
wantsDimension in interface ImageConversionReceiver

setDimension

public void setDimension(Dimension d)
Specified by:
setDimension in interface ImageConversionReceiver

ready

public void ready()
           throws IOException
Specified by:
ready in interface ImageConversionReceiver
Throws:
IOException


MMBase 2.0-SNAPSHOT - null