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

fm.common.UncloseableOutputStream.scala Maven / Gradle / Ivy

The newest version!
package fm.common

import java.io.{FilterOutputStream, OutputStream}

object UncloseableOutputStream {
  def apply(in: OutputStream): UncloseableOutputStream = new UncloseableOutputStream(in)
}

/**
 * Wraps an OutputStream and makes the close() method do nothing
 */
final class UncloseableOutputStream(in: OutputStream) extends FilterOutputStream(in) {
  override def close(): Unit = { }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy