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

jvmMain.it.unibo.tuprolog.serialize.ReadingDeserializer.kt Maven / Gradle / Ivy

The newest version!
package it.unibo.tuprolog.serialize

import java.io.Reader
import java.io.StringReader

interface ReadingDeserializer : Deserializer {
    fun deserialize(reader: Reader): T

    override fun deserialize(string: String): T =
        StringReader(string).use {
            deserialize(it)
        }

    fun deserializeMany(reader: Reader): Iterable

    override fun deserializeMany(string: String): Iterable =
        StringReader(string).use {
            deserializeMany(it)
        }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy