Package pixy.meta.iptc
Class IPTC
java.lang.Object
pixy.meta.Metadata
pixy.meta.iptc.IPTC
- All Implemented Interfaces:
java.lang.Iterable<MetadataEntry>
,MetadataReader
,Reader
public class IPTC extends Metadata
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addDataSet(IPTCDataSet dataSet)
void
addDataSets(java.util.Collection<? extends IPTCDataSet> dataSets)
java.lang.String
getAsString(IPTCTag key)
Get a string representation of the IPTCDataSet associated with the keyjava.util.List<IPTCDataSet>
getDataSet(IPTCTag key)
Get a list of IPTCDataSet associated with a keyjava.util.Map<IPTCTag,java.util.List<IPTCDataSet>>
getDataSets()
Get all the IPTCDataSet as a map for this IPTC datajava.util.Iterator<MetadataEntry>
iterator()
void
read()
static void
showIPTC(byte[] data)
static void
showIPTC(java.io.InputStream is)
void
write(java.io.OutputStream os)
Writes the metadata out to the output streamMethods inherited from class pixy.meta.Metadata
ensureDataRead, extractThumbnails, extractThumbnails, extractThumbnails, getData, getType, insertComment, insertComments, insertExif, insertExif, insertICCProfile, insertIPTC, insertIPTC, insertIRB, insertIRB, insertIRBThumbnail, insertXMP, insertXMP, isDataRead, readMetadata, readMetadata, readMetadata, removeMetadata
-
Constructor Details
-
Method Details
-
showIPTC
public static void showIPTC(byte[] data) -
showIPTC
public static void showIPTC(java.io.InputStream is) -
addDataSet
-
addDataSets
-
getAsString
Get a string representation of the IPTCDataSet associated with the key- Parameters:
key
- the IPTCTag for the IPTCDataSet- Returns:
- a String representation of the IPTCDataSet, separated by ";"
-
getDataSet
Get a list of IPTCDataSet associated with a key- Parameters:
key
- IPTCTag of the DataSet- Returns:
- a list of IPTCDataSet associated with the key
-
getDataSets
Get all the IPTCDataSet as a map for this IPTC data- Returns:
- a map with the key for the IPTCDataSet tag and a list of IPTCDataSet as the value
-
iterator
-
read
public void read() throws java.io.IOException- Throws:
java.io.IOException
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from class:Metadata
Writes the metadata out to the output stream
-