motris.data
Class PGMImageReader

java.lang.Object
  extended bymotris.data.ImageReader
      extended bymotris.data.PGMImageReader

public class PGMImageReader
extends ImageReader

This class loads .pgm Images into Motris GrayImages

Author:
ottlik

Field Summary
 
Fields inherited from class motris.data.ImageReader
DEBUGMODE
 
Constructor Summary
PGMImageReader()
           
 
Method Summary
private static void readData(java.io.InputStream file, byte[] data, int len)
           
static GrayImage readImage(java.io.InputStream file)
           
 
Methods inherited from class motris.data.ImageReader
readASCIIInt, readASCIIString, readEOL, readImage, readInt, supportAsyncReading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGMImageReader

public PGMImageReader()
Method Detail

readImage

public static GrayImage readImage(java.io.InputStream file)

readData

private static void readData(java.io.InputStream file,
                             byte[] data,
                             int len)
                      throws java.io.IOException
Throws:
java.io.IOException