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 TypeMethodDescriptionboolean
getEXIF()
getIPTC()
getXMP()
Optional
<org.apache.jena.rdf.model.Model> int
hashCode()
void
void
void
setNativeMetadata
(NativeMetadata nativeMetadata) void
setXMP
(byte[] xmp) void
-
Field Details
-
exifIFD
-
iptcDataSets
-
xmp
-
nativeMetadata
-
-
Constructor Details
-
MutableMetadata
public MutableMetadata()
-
-
Method Details
-
equals
-
getEXIF
-
getIPTC
-
getNativeMetadata
- Specified by:
getNativeMetadata
in interfaceMetadata
- Returns:
- Format-native metadata, or
null
if none is present.
-
getOrientation
Reads the orientation from the
Orientation
tag inEXIF data
, falling back to theXMP orientation triple
inXMP data
. The result is cached.- Specified by:
getOrientation
in interfaceMetadata
- Returns:
- Image orientation. Will be
Orientation.ROTATE_0
if orientation is not contained in EXIF or XMP data or cannot be read.
-
getXMP
-
getXMPElements
- Specified by:
getXMPElements
in interfaceMetadata
- Returns:
- Map of elements found in the XMP data. If none are found, the map is empty.
-
getXMPModel
- Specified by:
getXMPModel
in 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
.
-