Hi,
I want to read the contents of one of the files in a jar file. Here's the
documentation -
http://download.oracle.com/javase/6/docs/api/java/util/jar/JarFile.html
Now, the doc. of entries method specifies it returns an
EnumerationJarEntry, whereas -
(map #(class %) (enumeration-seq
JarEntries are ZipEntries - there is no problem here.
user= (supers java.util.jar.JarFile$JarFileEntry)
#{java.util.zip.ZipEntry java.util.zip.ZipConstants java.lang.Object
java.util.jar.JarEntry java.lang.Cloneable}
user= (isa? java.util.jar.JarFile$JarFileEntry
java.util.jar.JarEntry)
true
On
But then why does this fail -
(slurp (.getInputStream (first (enumeration-seq (.entries f)
with - No matching field found: getInputStream for class
java.util.jar.JarFile$JarFileEntry.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Oops. Sorry, my bad. I am not using the JarFile object for the call.
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with
I've been hacking around with jars in clojure recently. You might find
some ideas here: https://gist.github.com/1300472
// Ben
On Wed, Oct 19, 2011 at 14:34, mmwaikar mmwai...@gmail.com wrote:
But then why does this fail -
(slurp (.getInputStream (first (enumeration-seq (.entries f)