org.springbyexample.util.image
Class ImageProcessorImpl

java.lang.Object
  extended by org.springbyexample.util.image.ImageProcessorImpl
All Implemented Interfaces:
ImageProcessor

public class ImageProcessorImpl
extends Object
implements ImageProcessor

Image processor.

Author:
David Winterfeldt

Field Summary
protected  int imageScaleWidth
           
 
Constructor Summary
ImageProcessorImpl()
           
 
Method Summary
 int getImageScaleWidth()
          Gets image width for scaling.
protected  BufferedImage processImageScaling(BufferedImage image)
          Creates a scaled new file.
 void scaleImage(File imageFile, File newImageFile)
          Creates a scaled new file.
 void scaleImage(InputStream in, OutputStream out, String formatName)
          Creates a scaled new file.
 void setImageScaleWidth(int imageScaleWidth)
          Sets image width for scaling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageScaleWidth

protected int imageScaleWidth
Constructor Detail

ImageProcessorImpl

public ImageProcessorImpl()
Method Detail

getImageScaleWidth

public int getImageScaleWidth()
Gets image width for scaling.

Specified by:
getImageScaleWidth in interface ImageProcessor

setImageScaleWidth

public void setImageScaleWidth(int imageScaleWidth)
Sets image width for scaling.

Specified by:
setImageScaleWidth in interface ImageProcessor

scaleImage

public void scaleImage(File imageFile,
                       File newImageFile)
                throws IOException
Creates a scaled new file.

Specified by:
scaleImage in interface ImageProcessor
Throws:
IOException

scaleImage

public void scaleImage(InputStream in,
                       OutputStream out,
                       String formatName)
                throws IOException
Creates a scaled new file.

Specified by:
scaleImage in interface ImageProcessor
Throws:
IOException

processImageScaling

protected BufferedImage processImageScaling(BufferedImage image)
                                     throws IOException
Creates a scaled new file.

Throws:
IOException


Copyright © 2008-2009 Spring by Example. All Rights Reserved.