org.apache.sanselan.formats.pnm
Class PPMFileInfo

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

public class PPMFileInfo
extends FileInfo


Field Summary
 
Fields inherited from class org.apache.sanselan.formats.pnm.FileInfo
height, RAWBITS, width
 
Constructor Summary
PPMFileInfo(int width, int height, boolean RAWBITS, int max)
           
 
Method Summary
 void dump()
           
 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
newline, readImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPMFileInfo

public PPMFileInfo(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

dump

public void dump()
Overrides:
dump in class FileInfo


Copyright © 2007-2009. All Rights Reserved.