open class ExifTagInfo
This class stores information of an EXIF tag. For more information about defined EXIF tags, please read the Jeita EXIF 2.2 standard. Tags should be instantiated using Exify#buildTag
.
See Also
Exify
static val TYPE_ASCII: Short
The ASCII type in the EXIF standard. An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL. |
|
static val TYPE_LONG: Short
The SLONG type in the EXIF standard. A 32-bit (4-byte) signed integer (2's complement notation). |
|
static val TYPE_RATIONAL: Short
The SRATIONAL type of EXIF standard. It consists of two SLONGs. The first one is the numerator and the second one is the denominator. |
|
static val TYPE_UNDEFINED: Short
The UNDEFINED type in the EXIF standard. An 8-bit byte that can take any value depending on the field definition. |
|
static val TYPE_UNSIGNED_BYTE: Short
The BYTE type in the EXIF standard. An 8-bit unsigned integer. |
|
static val TYPE_UNSIGNED_LONG: Short
The LONG type in the EXIF standard. A 32-bit (4-byte) unsigned integer |
|
static val TYPE_UNSIGNED_RATIONAL: Short
The RATIONAL type of EXIF standard. It consists of two LONGs. The first one is the numerator and the second one expresses the denominator. |
|
static val TYPE_UNSIGNED_SHORT: Short
The SHORT type in the EXIF standard. A 16-bit (2-byte) unsigned integer |
open fun equals(other: Any?): Boolean |
|
open fun forceGetValueAsLong(defaultValue: Long): Long
Gets a long representation of the value. |
|
open fun forceGetValueAsString(): String!
Gets a string representation of the value. |
|
open fun forceSetComponentCount(count: Int): Unit
Sets the component count of this tag. Call this function before setValue() if the length of value does not match the component count. |
|
open fun getBytes(buf: ByteArray!): Unit
Equivalent to getBytes(buffer, 0, buffer.length). open fun getBytes(buf: ByteArray!, offset: Int, length: Int): Unit
Gets the |
|
open fun getComponentCount(): Int
Gets the component count of this tag. |
|
open fun getDataSize(): Int
Gets the total data size in bytes of the value of this tag. |
|
open fun getDataType(): Short
Gets the data type of this tag |
|
open static fun getElementSize(type: Short): Int
Gets the element size of the given data type in bytes. |
|
open fun getIfd(): Int
Returns the ID of the IFD this tag belongs to. |
|
open fun getOffset(): Int
Gets the offset of this tag. This is only valid if this data size > 4 and contains an offset to the location of the actual value. |
|
open fun getRational(index: Int): Rational!
Gets the |
|
open fun getString(): String!
Gets the |
|
open fun getStringByte(): ByteArray! |
|
open fun getTagId(): Short
Gets the TID of this tag. |
|
open fun getValue(): Any!
Gets the tag's value or null if none exists. |
|
open fun getValueAsByte(defaultValue: Byte): Byte
Gets the value as a byte. If there are more than 1 bytes in this value, gets the first byte. This method should be used for tags of type |
|
open fun getValueAsBytes(): ByteArray!
Gets the value as a byte array. This method should be used for tags of type |
|
open fun getValueAsInt(defaultValue: Int): Int
Gets the value as an int. If there are more than 1 ints in this value, gets the first one. This method should be used for tags of type |
|
open fun getValueAsInts(): IntArray!
Gets the value as an array of ints. This method should be used for tags of type |
|
open fun getValueAsLong(defaultValue: Long): Long
Gets the value or null if none exists. If there are more than 1 longs in this value, gets the first one. This method should be used for tags of type |
|
open fun getValueAsLongs(): LongArray!
Gets the value as an array of longs. This method should be used for tags of type |
|
open fun getValueAsRational(defaultValue: Long): Rational! open fun getValueAsRational(defaultValue: Rational!): Rational!
Gets the value as a Rational. If there are more than 1 Rationals in this value, gets the first one. This method should be used for tags of type |
|
open fun getValueAsRationals(): Array<Rational!>!
Gets the value as an array of Rationals. This method should be used for tags of type |
|
open fun getValueAsString(defaultValue: String!): String! open fun getValueAsString(): String!
Gets the value as a String. This method should be used for tags of type |
|
open fun getValueAt(index: Int): Long
Gets the value for type |
|
open fun hasDefinedCount(): Boolean |
|
open fun hasValue(): Boolean
Returns true if this ExifTag contains value; otherwise, this tag will contain an offset value that is determined when the tag is written. |
|
open static fun isValidIfd(ifdId: Int): Boolean
Returns true if the given IFD is a valid IFD. |
|
open static fun isValidType(type: Short): Boolean
Returns true if a given type is a valid tag type. |
|
open fun setHasDefinedCount(d: Boolean): Unit |
|
open fun setIfd(ifdId: Int): Unit |
|
open fun setOffset(offset: Int): Unit
Sets the offset of this tag. |
|
open fun setTimeValue(time: Long): Boolean
Sets a timestamp to this tag. The method converts the timestamp with the format of "yyyy:MM:dd kk:mm:ss" and calls |
|
open fun setValue(value: IntArray!): Boolean
Sets integer values into this tag. This method should be used for tags of type
open fun setValue(value: Int): Boolean
Sets integer value into this tag. This method should be used for tags of type
open fun setValue(value: LongArray!): Boolean
Sets long values into this tag. This method should be used for tags of type
open fun setValue(value: Long): Boolean
Sets long values into this tag. This method should be used for tags of type
open fun setValue(value: Array<Rational!>!): Boolean
Sets Rational values into this tag. This method should be used for tags of type
open fun setValue(value: Rational!): Boolean
Sets a Rational value into this tag. This method should be used for tags of type
open fun setValue(value: ByteArray!, offset: Int, length: Int): Boolean
Sets byte values into this tag. This method should be used for tags of type
open fun setValue(value: ByteArray!): Boolean
Equivalent to setValue(value, 0, value.length). open fun setValue(value: Byte): Boolean
Sets byte value into this tag. This method should be used for tags of type
open fun setValue(obj: Any!): Boolean
Sets the value for this tag using an appropriate setValue method for the given object. This method will fail if:
open fun setValue(value: String!): Boolean
Sets a string value into this tag. This method should be used for tags of type
|
|
open fun toString(): String |