org.mmbase.util.images
Class FileReceiver

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

public class FileReceiver
extends Object
implements ImageConversionReceiver

The 'image conversion receiver' storing the result in a File

Since:
MMBase-1.9
Version:
$Id: FileReceiver.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

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

Constructor Detail

FileReceiver

public FileReceiver(File f)
Method Detail

getDimension

public Dimension getDimension()

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface ImageConversionReceiver
Throws:
IOException

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null