All Downloads are FREE. Search and download functionalities are using the official Maven repository.

implementations.StandardCodingParser.kt Maven / Gradle / Ivy

There is a newer version: 0.9.24
Show newest version
package com.github.fluidsonic.fluid.json


internal class StandardCodingParser(
	private val context: Context,
	private val decoderFactory: (source: JSONReader, context: Context) -> JSONDecoder
) : JSONCodingParser {

	override fun  parseValueOfTypeOrNull(source: JSONReader, valueType: JSONCodingType, withTermination: Boolean) =
		decoderFactory(source, context)
			.withTermination(withTermination) { readValueOfTypeOrNull(valueType) }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy