au.csiro.pbdava.ssparkle.common.utils.ReusablePrintStream.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of variant-spark_2.11 Show documentation
Show all versions of variant-spark_2.11 Show documentation
Genomic variants interpretation toolkit
The newest version!
package au.csiro.pbdava.ssparkle.common.utils
import java.io.PrintStream
import java.io.OutputStream
class ReusablePrintStream(stream: OutputStream) extends PrintStream(stream) {
override def close() {
// just flush do not close
stream.flush()
}
}
object ReusablePrintStream {
lazy val stdout: ReusablePrintStream = new ReusablePrintStream(System.out)
}