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

io.youi.communication.CommunicationPlatform.scala Maven / Gradle / Ivy

The newest version!
package io.youi.communication

import java.io.{File, FileOutputStream}

object CommunicationPlatform {
  def createWriter(fileName: String, bytes: Long): ByteBufferWriter = {
    // TODO: configure temp directory
    val file = File.createTempFile("youi-", fileName)
    val channel = new FileOutputStream(file).getChannel
    ChannelWriter(fileName, file.getName, channel, bytes)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy