Encodable

class Encodable

An immutable encapsulation of data in its original (decoded) format, an encoding, and the data encoded in that format.

Parameters

decoded

The decoded data

encoded

The encoded data

encoding

The encoding used to encode the data

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Indicates whether this Encodable has an empty decoded and encoded representation

Link copied to clipboard

Indicates whether this Encodable has a non-empty decoded or encoded representation

Functions

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

Returns a new Encodable derived from re-encoding this instance's decoded data. This may be different from the current instance's encoded data if the object was created with a non-canonical encoding.

fun reencode(newEncoding: Encoding): Encodable

Returns a new Encodable derived from re-encoding this instance's decoded data with newEncoding.

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