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

biz.ostw.fsi.translator.OutputStreamDestination.scala Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package biz.ostw.fsi.translator

import java.io.{File, FileOutputStream, OutputStream}
import java.net.{URI, URL}

/**
  * Created by kav on 04.07.17.
  */
class OutputStreamDestination(val outputStream: OutputStream, val uri: URI) extends Destination[OutputStream] {

  def this(url: URL) {
    this(url.openConnection().getOutputStream, url.toURI)
  }

  def this(file: File) {
    this(new FileOutputStream(file), file.toURI)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy