DefaultFormatCache

Opaque caching class that allows for caching format related data (to speed up reuse). This is intended to be stored on the config, thus reused through multiple serializations. Note that this requires the serialName attribute of SerialDescriptor instances to be unique.

Constructors

Link copied to clipboard
constructor(cacheSize: Int)
constructor()

Functions

Link copied to clipboard

Create a new cache that contains the updates. It returns the updated cache (this may be the same if no updates were performed).

Link copied to clipboard
open override fun copy(): DefaultFormatCache
Link copied to clipboard
open override fun lookupDescriptor(overridenSerializer: KSerializer<*>?, serializerParent: SafeParentInfo, tagParent: SafeParentInfo, canBeAttribute: Boolean): XmlDescriptor?
Link copied to clipboard
open override fun lookupType(namespace: Namespace?, serialDesc: SerialDescriptor): XmlTypeDescriptor?
open override fun lookupType(parentName: QName, serialDesc: SerialDescriptor): XmlTypeDescriptor?