In Java, vorrei avvolgere un GZIPInputStream su un FileInputStream ed essere fatto. Com'è fatto l'equivalente in Scala?Come leggere il file gzip in Scala
Source.fromFile("a.csv.gz")....
fromFile restituisce una BufferedSource, che vuole davvero visualizzare il mondo come una raccolta di linee.
Non c'è modo più elegante di questo?
Source.fromInputStream(new GZIPInputStream(new BufferedInputStream(new FileInputStream("a.csv.gz"))))
Non è * esattamente * un duplicato, ma [questa domanda] (http://stackoverflow.com/questions/5153544/how-to-to read-from-zipped-xml-files-in-scala-code) potrebbe essere utile. –