Class FileInfo
- java.lang.Object
-
- org.apache.commons.imaging.formats.pnm.FileInfo
-
- Direct Known Subclasses:
PamFileInfo
,PbmFileInfo
,PgmFileInfo
,PpmFileInfo
abstract class FileInfo extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileInfo(int width, int height, boolean rawbits)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract int
getBitDepth()
(package private) abstract ImageInfo.ColorType
getColorType()
(package private) abstract ImageFormat
getImageType()
(package private) abstract java.lang.String
getImageTypeDescription()
(package private) abstract java.lang.String
getMIMEType()
(package private) abstract int
getNumComponents()
(package private) abstract int
getRGB(java.io.InputStream is)
(package private) abstract int
getRGB(WhiteSpaceReader wsr)
(package private) abstract boolean
hasAlpha()
(package private) void
newline()
(package private) void
readImage(ImageBuilder imageBuilder, java.io.InputStream is)
(package private) static int
readSample(java.io.InputStream is, int bytesPerSample)
(package private) static int
scaleSample(int sample, float scale, int max)
-
-
-
Method Detail
-
hasAlpha
abstract boolean hasAlpha()
-
getNumComponents
abstract int getNumComponents()
-
getBitDepth
abstract int getBitDepth()
-
getImageType
abstract ImageFormat getImageType()
-
getImageTypeDescription
abstract java.lang.String getImageTypeDescription()
-
getMIMEType
abstract java.lang.String getMIMEType()
-
getColorType
abstract ImageInfo.ColorType getColorType()
-
getRGB
abstract int getRGB(WhiteSpaceReader wsr) throws java.io.IOException
- Throws:
java.io.IOException
-
getRGB
abstract int getRGB(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
newline
void newline()
-
readSample
static int readSample(java.io.InputStream is, int bytesPerSample) throws java.io.IOException
- Throws:
java.io.IOException
-
scaleSample
static int scaleSample(int sample, float scale, int max) throws java.io.IOException
- Throws:
java.io.IOException
-
readImage
void readImage(ImageBuilder imageBuilder, java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
-