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 class
PamFileInfo.ColorTupleReader
private class
PamFileInfo.GrayscaleTupleReader
private class
PamFileInfo.TupleReader
-
Field Summary
Fields Modifier and Type Field Description private int
bytesPerSample
private int
depth
private boolean
hasAlpha
private int
maxval
private float
scale
private PamFileInfo.TupleReader
tupleReader
-
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 int
getBitDepth()
ImageInfo.ColorType
getColorType()
ImageFormat
getImageType()
java.lang.String
getImageTypeDescription()
java.lang.String
getMIMEType()
int
getNumComponents()
int
getRGB(java.io.InputStream is)
int
getRGB(WhiteSpaceReader wsr)
boolean
hasAlpha()
-
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:
getNumComponents
in classFileInfo
-
getBitDepth
public int getBitDepth()
- Specified by:
getBitDepth
in classFileInfo
-
getImageType
public ImageFormat getImageType()
- Specified by:
getImageType
in classFileInfo
-
getImageTypeDescription
public java.lang.String getImageTypeDescription()
- Specified by:
getImageTypeDescription
in classFileInfo
-
getMIMEType
public java.lang.String getMIMEType()
- Specified by:
getMIMEType
in classFileInfo
-
getColorType
public ImageInfo.ColorType getColorType()
- Specified by:
getColorType
in classFileInfo
-
getRGB
public int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
-
-