Skip to content

Instantly share code, notes, and snippets.

@dwins
Created January 4, 2011 15:38
Show Gist options
  • Save dwins/764926 to your computer and use it in GitHub Desktop.
Save dwins/764926 to your computer and use it in GitHub Desktop.
val file = new java.io.FileInputStream(args(0))
val inflater = new java.util.zip.InflaterInputStream(file)
val bytes = Iterator.continually(inflater.read) takeWhile(-1 !=)
bytes.foreach(System.out.write)
System.out.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment