Package com.drew.metadata.bmp
Class BmpReader
- java.lang.Object
-
- com.drew.metadata.bmp.BmpReader
-
public class BmpReader extends java.lang.ObjectReader for Windows and OS/2 bitmap files.References:
-
-
Field Summary
Fields Modifier and Type Field Description static intBITMAP"BM" - Windows or OS/2 bitmapstatic intOS2_BITMAP_ARRAY"BA" - OS/2 Bitmap array (multiple bitmaps)static intOS2_COLOR_ICON"CI" - OS/2 Color iconstatic intOS2_COLOR_POINTER"CP" - OS/2 Color pointerstatic intOS2_ICON"IC" - OS/2 Iconstatic intOS2_POINTER"PT" - OS/2 Pointer
-
Constructor Summary
Constructors Constructor Description BmpReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddError(java.lang.String errorMessage, Metadata metadata)voidextract(SequentialReader reader, Metadata metadata)protected voidreadBitmapHeader(SequentialReader reader, BmpHeaderDirectory directory, Metadata metadata)protected voidreadFileHeader(SequentialReader reader, Metadata metadata, boolean allowArray)
-
-
-
Field Detail
-
BITMAP
public static final int BITMAP
"BM" - Windows or OS/2 bitmap- See Also:
- Constant Field Values
-
OS2_BITMAP_ARRAY
public static final int OS2_BITMAP_ARRAY
"BA" - OS/2 Bitmap array (multiple bitmaps)- See Also:
- Constant Field Values
-
OS2_ICON
public static final int OS2_ICON
"IC" - OS/2 Icon- See Also:
- Constant Field Values
-
OS2_COLOR_ICON
public static final int OS2_COLOR_ICON
"CI" - OS/2 Color icon- See Also:
- Constant Field Values
-
OS2_COLOR_POINTER
public static final int OS2_COLOR_POINTER
"CP" - OS/2 Color pointer- See Also:
- Constant Field Values
-
OS2_POINTER
public static final int OS2_POINTER
"PT" - OS/2 Pointer- See Also:
- Constant Field Values
-
-
Method Detail
-
extract
public void extract(SequentialReader reader, Metadata metadata)
-
readFileHeader
protected void readFileHeader(SequentialReader reader, Metadata metadata, boolean allowArray)
-
readBitmapHeader
protected void readBitmapHeader(SequentialReader reader, BmpHeaderDirectory directory, Metadata metadata)
-
addError
protected void addError(java.lang.String errorMessage, Metadata metadata)
-
-