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

jvmMain.it.unibo.tuprolog.solve.channel.WriterChannel.kt Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy