info.magnolia.imaging.operations.load
Class SunJPEGCodecImageDecoderAlt

java.lang.Object
  extended by info.magnolia.imaging.operations.load.SunJPEGCodecImageDecoderAlt
All Implemented Interfaces:
ImageDecoder

public class SunJPEGCodecImageDecoderAlt
extends Object
implements ImageDecoder

An ImageDecoder implementation which uses JPEGImageDecoder (which might not be present on all systems), if it can determine the input is a JPEG image. If it isn't, it uses ImageIO to load the image. TODO - Need to analyze differences in behaviour and performance between this and SunJPEGCodecImageDecoder.

Version:
$Id$

Constructor Summary
SunJPEGCodecImageDecoderAlt()
           
 
Method Summary
 BufferedImage read(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SunJPEGCodecImageDecoderAlt

public SunJPEGCodecImageDecoderAlt()
Method Detail

read

public BufferedImage read(InputStream in)
                   throws IOException,
                          ImagingException
Specified by:
read in interface ImageDecoder
Throws:
IOException
ImagingException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.