jvmMain.it.unibo.tuprolog.solve.channel.WriterChannel.kt Maven / Gradle / Ivy
package it.unibo.tuprolog.solve.channel
import it.unibo.tuprolog.solve.channel.impl.AbstractOutputChannel
import java.io.OutputStream
import java.io.OutputStreamWriter
import java.io.Writer
class WriterChannel(private val writer: Writer) : AbstractOutputChannel() {
constructor(outputStream: OutputStream) : this(OutputStreamWriter(outputStream))
override fun writeActually(value: String) = writer.write(value)
override fun flushActually() = writer.flush()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy