jvmMain.it.unibo.tuprolog.serialize.ReadingDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialize-core-jvm Show documentation
Show all versions of serialize-core-jvm Show documentation
JSON and YAML serialization support for logic terms and clauses
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