scala.io.Sourceはたぶんimportしたらいいとおもう。下の方は、2.11から使えるようだ。
scala.io.Source.fromInputStream(is).getLines().mkString("\n")
scala.io.Source.fromInputStream(is).mkString
scala.io.Sourceはたぶんimportしたらいいとおもう。下の方は、2.11から使えるようだ。
scala.io.Source.fromInputStream(is).getLines().mkString("\n")
scala.io.Source.fromInputStream(is).mkString