com.arsdigita.acs
Class ImageSize

java.lang.Object
  |
  +--com.arsdigita.acs.ImageSize

public class ImageSize
extends java.lang.Object

Utility class for getting the width and height of images for uploaded files. This code was derived from AOLServer 3.0, tclmisc.c. The terms of the GNU Public License apply.


Constructor Summary
ImageSize(java.io.File file)
           
ImageSize(java.io.File file, java.lang.String mimeType)
           
ImageSize(java.lang.String fileName)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 void initGif(java.io.File f)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSize

public ImageSize(java.io.File file)
          throws java.io.IOException

ImageSize

public ImageSize(java.io.File file,
                 java.lang.String mimeType)
          throws java.io.IOException

ImageSize

public ImageSize(java.lang.String fileName)
          throws java.io.IOException
Method Detail

initGif

public void initGif(java.io.File f)
             throws java.io.IOException

getWidth

public int getWidth()

getHeight

public int getHeight()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception