motris.data
Class ImageReader

java.lang.Object
  extended bymotris.data.ImageReader
Direct Known Subclasses:
PGMImageReader, PMImageReader

public class ImageReader
extends java.lang.Object

Superclass for reading images from Files - currently, this includes all SUN Jimi file types, pgm and pm files and gzip compression

Author:
ottlik

Field Summary
(package private) static boolean DEBUGMODE
           
 
Constructor Summary
ImageReader()
           
 
Method Summary
static int readASCIIInt(java.io.InputStream file)
           
static java.lang.String readASCIIString(java.io.InputStream file)
           
static void readEOL(java.io.InputStream file)
           
static MotrisImage readImage(java.lang.String fileName)
           
static int readInt(java.io.InputStream _file)
           
static boolean supportAsyncReading(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUGMODE

static boolean DEBUGMODE
Constructor Detail

ImageReader

public ImageReader()
Method Detail

readImage

public static MotrisImage readImage(java.lang.String fileName)

supportAsyncReading

public static boolean supportAsyncReading(java.lang.String fileName)

readInt

public static int readInt(java.io.InputStream _file)
                   throws java.io.IOException
Throws:
java.io.IOException

readEOL

public static void readEOL(java.io.InputStream file)
                    throws java.io.IOException
Throws:
java.io.IOException

readASCIIString

public static java.lang.String readASCIIString(java.io.InputStream file)
                                        throws java.io.IOException
Throws:
java.io.IOException

readASCIIInt

public static int readASCIIInt(java.io.InputStream file)
                        throws java.io.IOException
Throws:
java.io.IOException