Class PpmFileInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.AbstractFileInfo
-
- org.apache.commons.imaging.formats.pnm.PpmFileInfo
-
final class PpmFileInfo extends AbstractFileInfo
-
-
Field Summary
Fields Modifier and Type Field Description private intbytesPerSampleprivate intmaxprivate floatscale-
Fields inherited from class org.apache.commons.imaging.formats.pnm.AbstractFileInfo
height, rawBits, width
-
-
Constructor Summary
Constructors Constructor Description PpmFileInfo(int width, int height, boolean rawBits, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitDepth()ImageInfo.ColorTypegetColorType()ImageFormatgetImageType()java.lang.StringgetImageTypeDescription()java.lang.StringgetMimeType()intgetNumComponents()intgetRgb(java.io.InputStream is)intgetRgb(WhiteSpaceReader wsr)booleanhasAlpha()-
Methods inherited from class org.apache.commons.imaging.formats.pnm.AbstractFileInfo
newline, readImage, readSample, scaleSample
-
-
-
-
Constructor Detail
-
PpmFileInfo
PpmFileInfo(int width, int height, boolean rawBits, int max) throws ImagingException- Throws:
ImagingException
-
-
Method Detail
-
getBitDepth
public int getBitDepth()
- Specified by:
getBitDepthin classAbstractFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorTypein classAbstractFileInfo
-
getImageType
public ImageFormat getImageType()
- Specified by:
getImageTypein classAbstractFileInfo
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescriptionin classAbstractFileInfo
-
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeTypein classAbstractFileInfo
-
getNumComponents
public int getNumComponents()
- Specified by:
getNumComponentsin classAbstractFileInfo
-
getRgb
public int getRgb(java.io.InputStream is) throws java.io.IOException- Specified by:
getRgbin classAbstractFileInfo- Throws:
java.io.IOException
-
getRgb
public int getRgb(WhiteSpaceReader wsr) throws java.io.IOException
- Specified by:
getRgbin classAbstractFileInfo- Throws:
java.io.IOException
-
hasAlpha
public boolean hasAlpha()
- Specified by:
hasAlphain classAbstractFileInfo
-
-