fm.common.PlatformCompat.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fm-common_2.11 Show documentation
Show all versions of fm-common_2.11 Show documentation
Common Scala classes that we use at Frugal Mechanic / Eluvio
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()
}
}