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

au.csiro.pbdava.ssparkle.common.utils.ReusablePrintStream.scala Maven / Gradle / Ivy

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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy