AutoMarshalling

abstract class AutoMarshalling

Common base type for all format libraries which can convert directly from String -> Classes

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@JvmName(name = "streamAsA")
inline fun <T : Any> asA(input: InputStream): T
@JvmName(name = "stringAsA")
inline fun <T : Any> asA(input: String): T
@JvmName(name = "stringAsA")
fun <T : Any> String.asA(target: KClass<T>): T
abstract fun <T : Any> asA(input: InputStream, target: KClass<T>): T
abstract fun <T : Any> asA(input: String, target: KClass<T>): T
Link copied to clipboard
abstract fun asFormatString(input: Any): String
Link copied to clipboard
open fun asInputStream(input: Any): InputStream
Link copied to clipboard
Link copied to clipboard
inline fun <IN : Any, OUT : Any> autoLens(lens: BiDiLensSpec<IN, String>): BiDiLensSpec<IN, OUT>
Link copied to clipboard
inline fun <IN : Any, OUT : Any> convert(input: IN): OUT

Conversion happens by converting the base object into JSON and then out again