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
fun equals(obj: java.lang.Object): boolean |
|
fun forceGetValueAsLong(defaultValue: long): long
Gets a long representation of the value. |
|
fun forceGetValueAsString(): java.lang.String
Gets a string representation of the value. |
|
fun forceSetComponentCount(count: int): void
Sets the component count of this tag. Call this function before setValue() if the length of value does not match the component count. |
|
fun getBytes(buf: kotlin.Array<byte>): void
Equivalent to getBytes(buffer, 0, buffer.length). fun getBytes(buf: kotlin.Array<byte>, offset: int, length: int): void
Gets the |
|
fun getComponentCount(): int
Gets the component count of this tag. |
|
fun getDataSize(): int
Gets the total data size in bytes of the value of this tag. |
|
fun getDataType(): short
Gets the data type of this tag |
|
static fun getElementSize(type: short): int
Gets the element size of the given data type in bytes. |
|
fun getIfd(): int
Returns the ID of the IFD this tag belongs to. |
|
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. |
|
fun getRational(index: int): Rational
Gets the |
|
fun getString(): java.lang.String
Gets the |
|
fun getStringByte(): kotlin.Array<byte> |
|
fun getTagId(): short
Gets the TID of this tag. |
|
fun getValue(): java.lang.Object
Gets the tag's value or null if none exists. |
|
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 |
|
fun getValueAsBytes(): kotlin.Array<byte>
Gets the value as a byte array. This method should be used for tags of type |
|
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 |
|
fun getValueAsInts(): kotlin.Array<int>
Gets the value as an array of ints. This method should be used for tags of type |
|
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 |
|
fun getValueAsLongs(): kotlin.Array<long>
Gets the value as an array of longs. This method should be used for tags of type |
|
fun getValueAsRational(defaultValue: long): Rational 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 |
|
fun getValueAsRationals(): kotlin.Array<Rational>
Gets the value as an array of Rationals. This method should be used for tags of type |
|
fun getValueAsString(defaultValue: java.lang.String): java.lang.String fun getValueAsString(): java.lang.String
Gets the value as a String. This method should be used for tags of type |
|
fun getValueAt(index: int): long
Gets the value for type |
|
fun hasDefinedCount(): boolean |
|
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. |
|
static fun isValidIfd(ifdId: int): boolean
Returns true if the given IFD is a valid IFD. |
|
static fun isValidType(type: short): boolean
Returns true if a given type is a valid tag type. |
|
fun setHasDefinedCount(d: boolean): void |
|
fun setIfd(ifdId: int): void |
|
fun setOffset(offset: int): void
Sets the offset of this tag. |
|
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 |
|
fun setValue(value: kotlin.Array<int>): boolean
Sets integer values into this tag. This method should be used for tags of type
fun setValue(value: int): boolean
Sets integer value into this tag. This method should be used for tags of type
fun setValue(value: kotlin.Array<long>): boolean
Sets long values into this tag. This method should be used for tags of type
fun setValue(value: long): boolean
Sets long values into this tag. This method should be used for tags of type
fun setValue(value: kotlin.Array<Rational>): boolean
Sets Rational values into this tag. This method should be used for tags of type
fun setValue(value: Rational): boolean
Sets a Rational value into this tag. This method should be used for tags of type
fun setValue(value: kotlin.Array<byte>, offset: int, length: int): boolean
Sets byte values into this tag. This method should be used for tags of type
fun setValue(value: kotlin.Array<byte>): boolean
Equivalent to setValue(value, 0, value.length). fun setValue(value: byte): boolean
Sets byte value into this tag. This method should be used for tags of type
fun setValue(obj: java.lang.Object): boolean
Sets the value for this tag using an appropriate setValue method for the given object. This method will fail if:
fun setValue(value: java.lang.String): boolean
Sets a string value into this tag. This method should be used for tags of type
|
|
fun toString(): java.lang.String |
TYPE_ASCII
The ASCII type in the EXIF standard. An 8-bit byte containing one 7-bit ASCII code. The final byte is terminated with NULL. |
|
TYPE_LONG
The SLONG type in the EXIF standard. A 32-bit (4-byte) signed integer (2's complement notation). |
|
TYPE_RATIONAL
The SRATIONAL type of EXIF standard. It consists of two SLONGs. The first one is the numerator and the second one is the denominator. |
|
TYPE_UNDEFINED
The UNDEFINED type in the EXIF standard. An 8-bit byte that can take any value depending on the field definition. |
|
TYPE_UNSIGNED_BYTE
The BYTE type in the EXIF standard. An 8-bit unsigned integer. |
|
TYPE_UNSIGNED_LONG
The LONG type in the EXIF standard. A 32-bit (4-byte) unsigned integer |
|
TYPE_UNSIGNED_RATIONAL
The RATIONAL type of EXIF standard. It consists of two LONGs. The first one is the numerator and the second one expresses the denominator. |
|
TYPE_UNSIGNED_SHORT
The SHORT type in the EXIF standard. A 16-bit (2-byte) unsigned integer |