com.groupdocs.metadata.core

Interfaces

Classes

Exceptions

com.groupdocs.metadata.core

Class Jpeg2000RootPackage

  • All Implemented Interfaces:
    IExif, IXmp, Iterable<MetadataProperty>


    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);
             }
         }
     }