org.apache.sanselan.formats.pnm
Class PBMFileInfo

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

public class PBMFileInfo
extends FileInfo


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

Constructor Detail

PBMFileInfo

public PBMFileInfo(int width,
                   int height,
                   boolean RAWBITS)
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

getColorType

public int getColorType()
Specified by:
getColorType 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

newline

protected void newline()
Overrides:
newline 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.