Package gov.nih.mipav.model.file
Class MetadataExtractor.BmpReader
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractor.BmpReader
-
- Enclosing class:
- MetadataExtractor
public class MetadataExtractor.BmpReader extends java.lang.Object
Reader for Windows and OS/2 bitmap files.References:
- Author:
- Drew Noakes https://drewnoakes.com, Nadahar
-
-
Field Summary
Fields Modifier and Type Field Description static int
BITMAP
"BM" - Windows or OS/2 bitmapstatic int
OS2_BITMAP_ARRAY
"BA" - OS/2 Bitmap array (multiple bitmaps)static int
OS2_COLOR_ICON
"CI" - OS/2 Color iconstatic int
OS2_COLOR_POINTER
"CP" - OS/2 Color pointerstatic int
OS2_ICON
"IC" - OS/2 Iconstatic int
OS2_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 void
addError(java.lang.String errorMessage, MetadataExtractor.Metadata metadata)
void
extract(MetadataExtractor.SequentialReader reader, MetadataExtractor.Metadata metadata)
protected void
readBitmapHeader(MetadataExtractor.SequentialReader reader, MetadataExtractor.BmpHeaderDirectory directory, MetadataExtractor.Metadata metadata)
protected void
readFileHeader(MetadataExtractor.SequentialReader reader, MetadataExtractor.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(MetadataExtractor.SequentialReader reader, MetadataExtractor.Metadata metadata)
-
readFileHeader
protected void readFileHeader(MetadataExtractor.SequentialReader reader, MetadataExtractor.Metadata metadata, boolean allowArray)
-
readBitmapHeader
protected void readBitmapHeader(MetadataExtractor.SequentialReader reader, MetadataExtractor.BmpHeaderDirectory directory, MetadataExtractor.Metadata metadata)
-
addError
protected void addError(java.lang.String errorMessage, MetadataExtractor.Metadata metadata)
-
-