com.arsdigita.mimetypes.image
Class JPEGImageSizer

java.lang.Object
  extended bycom.arsdigita.mimetypes.image.ImageSizer
      extended bycom.arsdigita.mimetypes.image.JPEGImageSizer

public class JPEGImageSizer
extends ImageSizer

Implements the ImageSizer interface for JPEG images

Version:
$Id: //core-platform/dev/src/com/arsdigita/mimetypes/image/JPEGImageSizer.java#6 $
Author:
Stanislav Freidin, Karl Goldstein

Field Summary
static String versionId
           
 
Constructor Summary
protected JPEGImageSizer()
           
 
Method Summary
 Dimension computeSize(DataInputStream in)
          Read the input stream, determine the size of the image, and return it
 
Methods inherited from class com.arsdigita.mimetypes.image.ImageSizer
computeImageSize, computeImageSize, getScaledSize, getScaledSize, toShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

JPEGImageSizer

protected JPEGImageSizer()
Method Detail

computeSize

public Dimension computeSize(DataInputStream in)
                      throws IOException
Read the input stream, determine the size of the image, and return it

Specified by:
computeSize in class ImageSizer
Parameters:
in - The InputStream to read
Returns:
The size of the image, or null on failure
Throws:
IOException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC