Jpeg2000RootPackage
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.ImageRootPackage
All Implemented Interfaces: com.groupdocs.metadata.core.IXmp, com.groupdocs.metadata.core.IExif
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); } } }
Methods
Method | Description |
---|---|
getXmpPackage() | Gets the XMP metadata package. |
setXmpPackage(XmpPacketWrapper value) | Sets the XMP metadata package. |
getExifPackage() | Gets the EXIF metadata package. |
setExifPackage(ExifPackage value) | Sets the EXIF metadata package. |
getJpeg2000Package() | Gets the JPEG2000 native metadata package. |
getXmpPackage()
public final XmpPacketWrapper getXmpPackage()
Gets the XMP metadata package.
Returns: XmpPacketWrapper - The XMP metadata package.
Learn more
setXmpPackage(XmpPacketWrapper value)
public final void setXmpPackage(XmpPacketWrapper value)
Sets the XMP metadata package.
Parameters:
Parameter | Type | Description |
---|---|---|
value | XmpPacketWrapper | The XMP metadata package. |
Learn more
Working with XMP metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+XMP+metadata |
getExifPackage()
public final ExifPackage getExifPackage()
Gets the EXIF metadata package.
Returns: ExifPackage - The EXIF metadata package.
Learn more
setExifPackage(ExifPackage value)
public final void setExifPackage(ExifPackage value)
Sets the EXIF metadata package.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ExifPackage | The EXIF metadata package. |
Learn more
Working with EXIF metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+EXIF+metadata |
getJpeg2000Package()
public final Jpeg2000Package getJpeg2000Package()
Gets the JPEG2000 native metadata package.
Returns: Jpeg2000Package - The JPEG2000 native metadata package.