Class MutableMetadata
java.lang.Object
is.galia.image.MutableMetadata
- All Implemented Interfaces:
Metadata
- Direct Known Subclasses:
ImageIOMetadata
Basic mutable implementation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEXIF()getIPTC()getXMP()Optional<org.apache.jena.rdf.model.Model> inthashCode()voidvoidvoidsetNativeMetadata(NativeMetadata nativeMetadata) voidsetXMP(byte[] xmp) void
-
Field Details
-
exifIFD
-
iptcDataSets
-
xmp
-
nativeMetadata
-
-
Constructor Details
-
MutableMetadata
public MutableMetadata()
-
-
Method Details
-
equals
-
getEXIF
-
getIPTC
-
getNativeMetadata
- Specified by:
getNativeMetadatain interfaceMetadata- Returns:
- Format-native metadata, or
nullif none is present.
-
getOrientation
Reads the orientation from the
Orientationtag inEXIF data, falling back to theXMP orientation tripleinXMP data. The result is cached.- Specified by:
getOrientationin interfaceMetadata- Returns:
- Image orientation. Will be
Orientation.ROTATE_0if orientation is not contained in EXIF or XMP data or cannot be read.
-
getXMP
-
getXMPElements
- Specified by:
getXMPElementsin interfaceMetadata- Returns:
- Map of elements found in the XMP data. If none are found, the map is empty.
-
getXMPModel
- Specified by:
getXMPModelin interfaceMetadata- Returns:
- XMP model backed by the contents of
getXMP().
-
hashCode
-
setEXIF
- Parameters:
exifIFD- EXIF directory (IFD). Notnull.
-
setIPTC
-
setNativeMetadata
- Parameters:
nativeMetadata- Format-native metadata. May benull.
-
setXMP
public void setXMP(byte[] xmp) - Parameters:
xmp- UTF-8 bytes. May benull.
-
setXMP
- Parameters:
xmp- UTF-8 string. May benull.
-