Package com.hexagonkt.serialization

Parse/serialize data in different formats to class instances.

Types

Link copied to clipboard
interface SerializationFormat
Link copied to clipboard
object SerializationManager

Functions

Link copied to clipboard
fun File.parse(): Any
fun URL.parse(): Any
fun InputStream.parse(mediaType: MediaType): Any
fun InputStream.parse(format: SerializationFormat = requireDefaultFormat()): Any
fun String.parse(mediaType: MediaType): Any
fun String.parse(format: SerializationFormat = requireDefaultFormat()): Any
Link copied to clipboard
fun File.parseList(): List<*>
fun URL.parseList(): List<*>
fun InputStream.parseList(mediaType: MediaType): List<*>
fun InputStream.parseList(format: SerializationFormat = requireDefaultFormat()): List<*>
fun String.parseList(mediaType: MediaType): List<*>
fun String.parseList(format: SerializationFormat = requireDefaultFormat()): List<*>
Link copied to clipboard
fun File.parseMap(): Map<*, *>
fun URL.parseMap(): Map<*, *>
fun InputStream.parseMap(mediaType: MediaType): Map<*, *>
fun InputStream.parseMap(format: SerializationFormat = requireDefaultFormat()): Map<*, *>
fun String.parseMap(mediaType: MediaType): Map<*, *>
fun String.parseMap(format: SerializationFormat = requireDefaultFormat()): Map<*, *>
Link copied to clipboard
fun Any.serialize(mediaType: MediaType): String
fun Any.serialize(format: SerializationFormat = requireDefaultFormat()): String
Link copied to clipboard
fun Any.serializeBytes(mediaType: MediaType): ByteArray
fun Any.serializeBytes(format: SerializationFormat = requireDefaultFormat()): ByteArray