IIptc
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()); // … } } }
Methods
Method | Description |
---|---|
getIptcPackage() | Gets the IPTC metadata package associated with the file. |
setIptcPackage(IptcRecordSet value) | Sets the IPTC metadata package associated with the file. |
getIptcPackage()
public abstract IptcRecordSet getIptcPackage()
Gets the IPTC metadata package associated with the file.
Returns: IptcRecordSet - The IPTC metadata package associated with the file.
setIptcPackage(IptcRecordSet value)
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. |