JpegRootPackage
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, com.groupdocs.metadata.core.IIptc
public class JpegRootPackage extends ImageRootPackage implements IXmp, IExif, IIptc
Represents the root package allowing working with metadata in a JPEG image.
Learn more
- Working with metadata in JPEG images
- Working with EXIF metadata
- Working with XMP metadata
- Working with IPTC IIM metadata
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. |
| getIptcPackage() | Gets the IPTC metadata package. |
| setIptcPackage(IptcRecordSet value) | Sets the IPTC metadata package. |
| getImageResourcePackage() | Gets the Photoshop Image Resource metadata package. |
| getMakerNotePackage() | Gets the MakerNote metadata package. |
| removeImageResourcePackage() | Removes Photoshop Image Resource metadata package. |
| detectBarcodeTypes() | Extracts the types of the barcodes presented in the image. |
| sanitize() | Removes writable metadata properties from the 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 |
getIptcPackage()
public final IptcRecordSet getIptcPackage()
Gets the IPTC metadata package.
Returns: IptcRecordSet - The IPTC metadata package.
Learn more
setIptcPackage(IptcRecordSet value)
public final void setIptcPackage(IptcRecordSet value)
Sets the IPTC metadata package.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | IptcRecordSet | The IPTC metadata package. |
Learn more
Working with IPTC IIM metadata: https://docs.groupdocs.com/display/metadatajava/Working+with+IPTC+IIM+metadata |
getImageResourcePackage()
public final ImageResourcePackage getImageResourcePackage()
Gets the Photoshop Image Resource metadata package. Image resource blocks are the basic building unit of Photoshop native file format.
Returns: ImageResourcePackage - The Image Resource metadata package.
getMakerNotePackage()
public final MakerNotePackage getMakerNotePackage()
Gets the MakerNote metadata package.
Returns: MakerNotePackage - The MakerNote metadata package.
removeImageResourcePackage()
public final void removeImageResourcePackage()
Removes Photoshop Image Resource metadata package.
detectBarcodeTypes()
public final String[] detectBarcodeTypes()
Extracts the types of the barcodes presented in the image.
Returns: java.lang.String[] - An array of barcode types.
sanitize()
public int sanitize()
Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well.
Returns: int - The number of affected properties.