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

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

The newest version!
package fm.common

trait PlatformCompat {
  // Scala.js is missing some methods on InputStream
  implicit class InputStreamCompat(self: java.io.InputStream) {
    def toByteArray(): Array[Byte] = self.readAllBytes()
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy