Class PamFileInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.FileInfo
-
- org.apache.commons.imaging.formats.pnm.PamFileInfo
-
class PamFileInfo extends FileInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classPamFileInfo.ColorTupleReaderprivate classPamFileInfo.GrayscaleTupleReaderprivate classPamFileInfo.TupleReader
-
Field Summary
Fields Modifier and Type Field Description private intbytesPerSampleprivate intdepthprivate booleanhasAlphaprivate intmaxvalprivate floatscaleprivate PamFileInfo.TupleReadertupleReader
-
Constructor Summary
Constructors Constructor Description PamFileInfo(int width, int height, int depth, int maxval, java.lang.String tupleType)
-
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.FileInfo
newline, readImage, readSample, scaleSample
-
-
-
-
Field Detail
-
depth
private final int depth
-
maxval
private final int maxval
-
scale
private final float scale
-
bytesPerSample
private final int bytesPerSample
-
hasAlpha
private final boolean hasAlpha
-
tupleReader
private final PamFileInfo.TupleReader tupleReader
-
-
Constructor Detail
-
PamFileInfo
PamFileInfo(int width, int height, int depth, int maxval, java.lang.String tupleType) throws ImageReadException- Throws:
ImageReadException
-
-
Method Detail
-
getNumComponents
public int getNumComponents()
- Specified by:
getNumComponentsin classFileInfo
-
getBitDepth
public int getBitDepth()
- Specified by:
getBitDepthin classFileInfo
-
getImageType
public ImageFormat getImageType()
- Specified by:
getImageTypein classFileInfo
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescriptionin classFileInfo
-
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMETypein classFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorTypein classFileInfo
-
getRGB
public int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
-
-