public class JPEG extends HeaderFormat
Constructor and Description |
---|
JPEG() |
Modifier and Type | Method and Description |
---|---|
protected ImageFileFormat |
format()
The associated
ImageFileFormat with this header. |
protected Optional<ImageMetadata> |
populateFromMetadata(com.drew.metadata.Metadata metadata,
ImageFileAttributes attributes)
Creates a
ImageMetadata , if possible, from metadata . |
populateFrom
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected ImageFileFormat format()
HeaderFormat
ImageFileFormat
with this header.
Only files whose paths end with an extension for this format will be accepted.
format
in class HeaderFormat
protected Optional<ImageMetadata> populateFromMetadata(com.drew.metadata.Metadata metadata, ImageFileAttributes attributes) throws ImageIOException
HeaderFormat
ImageMetadata
, if possible, from metadata
.populateFromMetadata
in class HeaderFormat
metadata
- the Metadata
to infer ImageMetadata
from.attributes
- timestamps and other file-attributes associated with the metadata.ImageIOException
- if the metadata does not meet expectations.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.