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.
|
getImageTypecopyTo, getFileType, isLicensed, sanitizeaddProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final ExifPackage getExifPackage()
Gets the EXIF metadata package.
getExifPackage in interface IExifLearn more
public final Jpeg2000Package getJpeg2000Package()
Gets the JPEG2000 native metadata package.
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
getXmpPackage in interface IXmpLearn more
public final void setExifPackage(ExifPackage value)
Sets the EXIF metadata package.
setExifPackage in interface IExifvalue - The EXIF metadata package.
Learn more
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
setXmpPackage in interface IXmpvalue - The XMP metadata package.
Learn more
Copyright © 2025. All rights reserved.