Package pixy.meta.iptc
Class IPTCDataSet
java.lang.Object
pixy.meta.iptc.IPTCDataSet
- All Implemented Interfaces:
java.lang.Comparable<IPTCDataSet>
public class IPTCDataSet extends java.lang.Object implements java.lang.Comparable<IPTCDataSet>
International Press Telecommunications Council (IPTC) data set
- Version:
- 1.0 06/10/2013
- Author:
- Wen Yu, yuwen_66@yahoo.com
-
Constructor Summary
Constructors Constructor Description IPTCDataSet(int tag, byte[] data)
IPTCDataSet(int recordNumber, int tag, int size, byte[] data, int offset)
IPTCDataSet(int tag, java.lang.String value)
IPTCDataSet(IPTCApplicationTag appTag, byte[] data)
IPTCDataSet(IPTCApplicationTag appTag, java.lang.String value)
IPTCDataSet(IPTCRecord record, int tag, byte[] data)
IPTCDataSet(IPTCRecord record, int tag, java.lang.String value)
-
Method Summary
Modifier and Type Method Description boolean
allowMultiple()
int
compareTo(IPTCDataSet other)
boolean
equals(java.lang.Object obj)
byte[]
getData()
java.lang.String
getDataAsString()
java.lang.String
getName()
int
getRecordNumber()
java.lang.String
getRecordType()
int
getSize()
int
getTag()
IPTCTag
getTagEnum()
int
hashCode()
void
write(java.io.OutputStream out)
Write the current IPTCDataSet to the OutputStream
-
Constructor Details
-
IPTCDataSet
public IPTCDataSet(int tag, byte[] data) -
IPTCDataSet
public IPTCDataSet(int recordNumber, int tag, int size, byte[] data, int offset) -
IPTCDataSet
public IPTCDataSet(int tag, java.lang.String value) -
IPTCDataSet
-
IPTCDataSet
-
IPTCDataSet
-
IPTCDataSet
-
-
Method Details
-
allowMultiple
public boolean allowMultiple() -
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<IPTCDataSet>
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
getData
public byte[] getData() -
getDataAsString
public java.lang.String getDataAsString() -
getName
public java.lang.String getName() -
getRecordType
public java.lang.String getRecordType() -
getRecordNumber
public int getRecordNumber() -
getSize
public int getSize() -
getTag
public int getTag() -
getTagEnum
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
write
public void write(java.io.OutputStream out) throws java.io.IOExceptionWrite the current IPTCDataSet to the OutputStream- Parameters:
out
- OutputStream to write the IPTCDataSet- Throws:
java.io.IOException
-