org.apache.sanselan.formats.pnm
Class FileInfo
java.lang.Object
org.apache.sanselan.formats.pnm.FileInfo
- Direct Known Subclasses:
- PBMFileInfo, PGMFileInfo, PPMFileInfo
public abstract class FileInfo
- extends java.lang.Object
Constructor Summary |
FileInfo(int width,
int height,
boolean RAWBITS)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
width
protected final int width
height
protected final int height
RAWBITS
protected final boolean RAWBITS
FileInfo
public FileInfo(int width,
int height,
boolean RAWBITS)
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.