Advertisement
Guest User

Untitled

a guest
May 26th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.FileInputStream
  2. import java.util.zip.ZipInputStream
  3.  
  4. object Klusek {
  5.   val zip = new ZipInputStream(new FileInputStream("/path/to/jar/file.jar"))
  6.   val classNames = Stream.continually(zip.getNextEntry).takeWhile(_ != null)
  7.     .filter(entry => !entry.isDirectory && entry.getName.endsWith(".class"))
  8.     .map(entry => entry.getName.replace("/", ".").dropRight(".class".length))
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement