j2d.io.ppm.Decoders
Class PpmDecoder

java.lang.Object
  extended by j2d.io.ppm.Decoders.ImageDecoder
      extended by j2d.io.ppm.Decoders.PpmDecoder
All Implemented Interfaces:
java.awt.image.ImageProducer

public class PpmDecoder
extends ImageDecoder


Constructor Summary
PpmDecoder(java.io.InputStream in)
           
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 void readHeader(java.io.InputStream in)
           
 void readRow(java.io.InputStream in, int row, int[] rgbRow)
           
 
Methods inherited from class j2d.io.ppm.Decoders.ImageDecoder
addConsumer, isConsumer, removeConsumer, requestTopDownLeftRightResend, startProduction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PpmDecoder

public PpmDecoder(java.io.InputStream in)
Method Detail

readHeader

public void readHeader(java.io.InputStream in)
                throws java.io.IOException
Throws:
java.io.IOException

getWidth

public int getWidth()

getHeight

public int getHeight()

readRow

public void readRow(java.io.InputStream in,
                    int row,
                    int[] rgbRow)
             throws java.io.IOException
Throws:
java.io.IOException