> Hi,
> How to create a File object of .java file contained in jar/zip file.
[quoted text clipped - 7 lines]
> thanxs
> kota
jar -x filename jarname > retrieved_file

Signature
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
kotauk@gmail.com - 06 Apr 2006 16:09 GMT
Hi Fred,
I want to create java.io.File object programatically
thanks
kota
Roedy Green - 06 Apr 2006 21:36 GMT
> I want to create java.io.File object programatically
new File( ... )
see http://mindprod.com/jgloss/file.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
kotauk@gmail.com - 06 Apr 2006 16:10 GMT
Hi Fred,
I want to create java.io.File object programatically while reading
the jar using java.util.jar.JarFile
thanks
kota
Thomas Fritsch - 06 Apr 2006 17:18 GMT
> I want to create java.io.File object programatically while reading
> the jar using java.util.jar.JarFile
Read <http://java.sun.com/j2se/1.4.2/docs/api/java/util/jar/JarFile.html>.
There is all you need to get an InputStream for reading a zip-entry of the
the jar. Open a FileOutputStream for the destination file. Then copy all
bytes from the InputStream to the FileOutputStream.

Signature
"Thomas:Fritsch$ops.de".replace(':', '.').replace('$', '@')