Encapsulated java.io.FileInputStream in Scala class