Scala lib: Added registerfile parsing utility method to parse from a java.io.File object