Home

com.hexagonkt.serialization / SerializationFormat

SerializationFormat

interface SerializationFormat

Properties

Name Summary
contentType abstract val contentType:String
extensions abstract val extensions:Set<String>
isBinary abstract val isBinary:Boolean

Functions

Name Summary
parse abstract fun <T :Any> parse(input:InputStream, type:KClass<T>):T
parseObjects abstract fun <T :Any> parseObjects(input:InputStream, type:KClass<T>):List<T>
serialize abstract fun serialize(obj:Any, output:OutputStream):Unit
open fun serialize(obj:Any):String

Extension Functions

Name Summary
convertToMap funAny.convertToMap():Map<*, *>
serialize funAny.serialize(format:SerializationFormat= defaultFormat):String
funAny.serialize(contentType:String):String

Inheritors

Name Summary
Csv object Csv :SerializationFormat
Json object Json :SerializationFormat
Yaml object Yaml :SerializationFormat