com.arsdigita.acs
Class ImageSize

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

public class ImageSize
extends 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.


Field Summary
(package private) static int M_COM
           
(package private) static int M_EOI
           
(package private) static int M_SOF0
           
(package private) static int M_SOF1
           
(package private) static int M_SOF10
           
(package private) static int M_SOF11
           
(package private) static int M_SOF13
           
(package private) static int M_SOF14
           
(package private) static int M_SOF15
           
(package private) static int M_SOF2
           
(package private) static int M_SOF3
           
(package private) static int M_SOF5
           
(package private) static int M_SOF6
           
(package private) static int M_SOF7
           
(package private) static int M_SOF9
           
(package private) static int M_SOI
           
(package private) static int M_SOS
           
 
Constructor Summary
ImageSize(String fileName)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 void initGif(File f)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

M_SOF0

static final int M_SOF0

M_SOF1

static final int M_SOF1

M_SOF2

static final int M_SOF2

M_SOF3

static final int M_SOF3

M_SOF5

static final int M_SOF5

M_SOF6

static final int M_SOF6

M_SOF7

static final int M_SOF7

M_SOF9

static final int M_SOF9

M_SOF10

static final int M_SOF10

M_SOF11

static final int M_SOF11

M_SOF13

static final int M_SOF13

M_SOF14

static final int M_SOF14

M_SOF15

static final int M_SOF15

M_SOI

static final int M_SOI

M_EOI

static final int M_EOI

M_SOS

static final int M_SOS

M_COM

static final int M_COM
Constructor Detail

ImageSize

public ImageSize(String fileName)
          throws IOException
Method Detail

initGif

public void initGif(File f)
             throws IOException

getWidth

public int getWidth()

getHeight

public int getHeight()

main

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