jvmMain.it.unibo.tuprolog.solve.channel.PrintStreamChannel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solve-jvm Show documentation
Show all versions of solve-jvm Show documentation
Resolution-agnostic API for logic solvers
package it.unibo.tuprolog.solve.channel
import it.unibo.tuprolog.solve.channel.impl.AbstractOutputChannel
import java.io.PrintStream
class PrintStreamChannel(private val printStream: PrintStream) : AbstractOutputChannel() {
override fun writeActually(value: T) = printStream.print(value)
override fun flushActually() = printStream.flush()
}