public class Jpeg2000RootPackage extends ImageRootPackage implements IXmp, IExif
Represents the root package intended to work with metadata in a JPEG2000 image.
Learn more
This code snippet demonstrates how to read JPEG2000 image comments.
try (Metadata metadata = new Metadata(Constants.InputJpeg2000)) { Jpeg2000RootPackage root = metadata.getRootPackageGeneric(); if (root.getJpeg2000Package().getComments() != null) { for (String comment : root.getJpeg2000Package().getComments()) { System.out.println(comment); } } }
Modifier and Type | Method and Description |
---|---|
ExifPackage |
getExifPackage()
Gets the EXIF metadata package.
|
Jpeg2000Package |
getJpeg2000Package()
Gets the JPEG2000 native metadata package.
|
XmpPacketWrapper |
getXmpPackage()
Gets the XMP metadata package.
|
void |
setExifPackage(ExifPackage value)
Sets the EXIF metadata package.
|
void |
setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
|
getImageType
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
getXmpPackage
in interface IXmp
Learn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
setXmpPackage
in interface IXmp
value
- The XMP metadata package.
Learn more
public final ExifPackage getExifPackage()
Gets the EXIF metadata package.
getExifPackage
in interface IExif
Learn more
public final void setExifPackage(ExifPackage value)
Sets the EXIF metadata package.
setExifPackage
in interface IExif
value
- The EXIF metadata package.
Learn more
public final Jpeg2000Package getJpeg2000Package()
Gets the JPEG2000 native metadata package.