Class AbstractFileInfo
java.lang.Object
org.apache.commons.imaging.formats.pnm.AbstractFileInfo
- Direct Known Subclasses:
PamFileInfo, PbmFileInfo, PgmFileInfo, PpmFileInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract int(package private) abstract ImageInfo.ColorType(package private) abstract ImageFormat(package private) abstract String(package private) abstract String(package private) abstract int(package private) abstract intgetRgb(InputStream is) (package private) abstract intgetRgb(WhiteSpaceReader wsr) (package private) abstract booleanhasAlpha()(package private) voidnewline()(package private) voidreadImage(ImageBuilder imageBuilder, InputStream is) (package private) static intreadSample(InputStream is, int bytesPerSample) (package private) static intscaleSample(int sample, float scale, int max)
-
Field Details
-
width
final int width -
height
final int height -
rawBits
final boolean rawBits
-
-
Constructor Details
-
AbstractFileInfo
AbstractFileInfo(int width, int height, boolean rawBits)
-
-
Method Details
-
readSample
- Throws:
IOException
-
scaleSample
- Throws:
ImagingException
-
getBitDepth
abstract int getBitDepth() -
getColorType
-
getImageType
-
getImageTypeDescription
-
getMimeType
-
getNumComponents
abstract int getNumComponents() -
getRgb
- Throws:
IOException
-
getRgb
- Throws:
IOException
-
hasAlpha
abstract boolean hasAlpha() -
newline
void newline() -
readImage
- Throws:
IOException
-