Skip to content

Index

//hexagon_core/com.hexagonkt.serialization/SerializationManager

SerializationManager

[jvm] object SerializationManager

TODO

Can be a Serializer immutable class and:

object SerializationManager : Serializer(mimeTypesResource, formats)

Functions

Name Summary
contentTypeOf [jvm]
Content
fun contentTypeOf(file: File): String?
fun contentTypeOf(url: URL): String?
fun contentTypeOf(extension: String): String?


defaultFormat [jvm]
Content
fun defaultFormat(defaultFormat: SerializationFormat)


formatOf [jvm]
Content
fun formatOf(file: File): SerializationFormat
fun formatOf(url: URL): SerializationFormat
fun formatOf(contentType: String): SerializationFormat
fun formatOf(contentType: String, defaultFormat: SerializationFormat): SerializationFormat


formats [jvm]
Content
fun formats(vararg formats: SerializationFormat)


requireDefaultFormat [jvm]
Content
fun requireDefaultFormat(): SerializationFormat


requireMapper [jvm]
Content
fun requireMapper(): Mapper


Properties

Name Summary
defaultFormat [jvm] var defaultFormat: SerializationFormat?
formats [jvm] var formats: LinkedHashSet<SerializationFormat>List of formats.
mapper [jvm] var mapper: Mapper? = null