Class BMP
The headers found in a BMP file.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ImageFileFormatformat()The associatedImageFileFormatwith this header.protected Optional<ImageMetadata> populateFromMetadata(com.drew.metadata.Metadata metadata, ImageFileAttributes attributes) Creates aImageMetadata, if possible, frommetadata.Methods inherited from class org.anchoranalysis.plugin.io.bean.metadata.header.HeaderFormat
populateFromMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BMP
public BMP()
-
-
Method Details
-
format
Description copied from class:HeaderFormatThe associatedImageFileFormatwith this header.Only files whose paths end with an extension for this format will be accepted.
- Specified by:
formatin classHeaderFormat- Returns:
- the format.
-
populateFromMetadata
protected Optional<ImageMetadata> populateFromMetadata(com.drew.metadata.Metadata metadata, ImageFileAttributes attributes) throws ImageIOException Description copied from class:HeaderFormatCreates aImageMetadata, if possible, frommetadata.- Specified by:
populateFromMetadatain classHeaderFormat- Parameters:
metadata- theMetadatato inferImageMetadatafrom.attributes- timestamps and other file-attributes associated with the metadata.- Returns:
- the inferred metadata, if it was possible to infer it.
- Throws:
ImageIOException- if the metadata does not meet expectations.
-