IIptc
Leave feedback
On this page
public interface IIptc
Represents base operations intended to work with IPTC metadata. Please find more information at http://en.wikipedia.org/wiki/International_Press_Telecommunications_Council .
Learn more
This example shows how to read basic IPTC metadata properties.
try (Metadata metadata = new Metadata(Constants.JpegWithIptc)) { IIptc root = (IIptc) metadata.getRootPackage(); if (root.getIptcPackage() != null) { if (root.getIptcPackage().getEnvelopeRecord() != null) { System.out.println(root.getIptcPackage().getEnvelopeRecord().getDateSent()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getDestination()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getFileFormat()); System.out.println(root.getIptcPackage().getEnvelopeRecord().getFileFormatVersion()); // … } if (root.getIptcPackage().getApplicationRecord() != null) { System.out.println(root.getIptcPackage().getApplicationRecord().getHeadline()); System.out.println(root.getIptcPackage().getApplicationRecord().getByLine()); System.out.println(root.getIptcPackage().getApplicationRecord().getByLineTitle()); System.out.println(root.getIptcPackage().getApplicationRecord().getCaptionAbstract()); System.out.println(root.getIptcPackage().getApplicationRecord().getCity()); System.out.println(root.getIptcPackage().getApplicationRecord().getDateCreated()); System.out.println(root.getIptcPackage().getApplicationRecord().getReleaseDate()); // … } } }
| Method | Description |
|---|---|
| getIptcPackage() | Gets the IPTC metadata package associated with the file. |
| setIptcPackage(IptcRecordSet value) | Sets the IPTC metadata package associated with the file. |
public abstract IptcRecordSet getIptcPackage()
Gets the IPTC metadata package associated with the file.
Returns: IptcRecordSet - The IPTC metadata package associated with the file.
public abstract void setIptcPackage(IptcRecordSet value)
Sets the IPTC metadata package associated with the file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | IptcRecordSet | The IPTC metadata package associated with the file. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.