org.apache.sanselan.formats.pnm
Class PGMFileInfo

java.lang.Object
  extended by org.apache.sanselan.formats.pnm.FileInfo
      extended by org.apache.sanselan.formats.pnm.PGMFileInfo

public class PGMFileInfo
extends FileInfo


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

Constructor Detail

PGMFileInfo

public PGMFileInfo(int width,
                   int height,
                   boolean RAWBITS,
                   int max)
Method Detail

getNumComponents

public int getNumComponents()
Specified by:
getNumComponents in class FileInfo

getBitDepth

public int getBitDepth()
Specified by:
getBitDepth in class FileInfo

getImageType

public ImageFormat getImageType()
Specified by:
getImageType in class FileInfo

getImageTypeDescription

public java.lang.String getImageTypeDescription()
Specified by:
getImageTypeDescription in class FileInfo

getMIMEType

public java.lang.String getMIMEType()
Specified by:
getMIMEType in class FileInfo

getColorType

public int getColorType()
Specified by:
getColorType in class FileInfo

getRGB

public int getRGB(java.io.InputStream is)
           throws java.io.IOException
Specified by:
getRGB in class FileInfo
Throws:
java.io.IOException

getRGB

public int getRGB(org.apache.sanselan.formats.pnm.WhiteSpaceReader wsr)
           throws java.io.IOException
Specified by:
getRGB in class FileInfo
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.