org.apache.sanselan.formats.pnm
Class FileInfo

java.lang.Object
  extended by org.apache.sanselan.formats.pnm.FileInfo
Direct Known Subclasses:
PBMFileInfo, PGMFileInfo, PPMFileInfo

public abstract class FileInfo
extends java.lang.Object


Field Summary
protected  int height
           
protected  boolean RAWBITS
           
protected  int width
           
 
Constructor Summary
FileInfo(int width, int height, boolean RAWBITS)
           
 
Method Summary
 void dump()
           
abstract  int getBitDepth()
           
abstract  int getColorType()
           
abstract  ImageFormat getImageType()
           
abstract  java.lang.String getImageTypeDescription()
           
abstract  java.lang.String getMIMEType()
           
abstract  int getNumComponents()
           
abstract  int getRGB(java.io.InputStream is)
           
abstract  int getRGB(org.apache.sanselan.formats.pnm.WhiteSpaceReader wsr)
           
protected  void newline()
           
 void readImage(java.awt.image.BufferedImage bi, java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected final int width

height

protected final int height

RAWBITS

protected final boolean RAWBITS
Constructor Detail

FileInfo

public FileInfo(int width,
                int height,
                boolean RAWBITS)
Method Detail

getNumComponents

public abstract int getNumComponents()

getBitDepth

public abstract int getBitDepth()

getImageType

public abstract ImageFormat getImageType()

getImageTypeDescription

public abstract java.lang.String getImageTypeDescription()

getMIMEType

public abstract java.lang.String getMIMEType()

getColorType

public abstract int getColorType()

getRGB

public abstract int getRGB(org.apache.sanselan.formats.pnm.WhiteSpaceReader wsr)
                    throws java.io.IOException
Throws:
java.io.IOException

getRGB

public abstract int getRGB(java.io.InputStream is)
                    throws java.io.IOException
Throws:
java.io.IOException

newline

protected void newline()

readImage

public void readImage(java.awt.image.BufferedImage bi,
                      java.io.InputStream is)
               throws java.io.IOException
Throws:
java.io.IOException

dump

public void dump()


Copyright © 2007-2009. All Rights Reserved.