ChipDataElement

One data object of a chip file: its tag, its raw value bytes, and the value read as UTF-8 text.

The raw bytes are always kept. text is null when the bytes are not valid UTF-8, for example an image. The SDK never trims, folds or corrects the text: < fillers stay as the chip has them.

toString() shows the tag and the byte count, never the value.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Properties

Link copied to clipboard
val tag: Int

The tag as one number, for example 0x5F0E.

Link copied to clipboard
val text: String?

The value decoded as UTF-8, or null when it is not valid UTF-8.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Same tag and same value bytes.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

The tag and the byte count; never the value.

Link copied to clipboard

A copy of the raw value bytes.