JarFile from inside a *.jar or inputstream to file?

后端 未结 4 1613
再見小時候
再見小時候 2021-01-13 23:02

I have a jar or war.

I\'m programmaticaly reading this jar, and when I find jar inside this jar I\'d like to programmaticaly read it again.

But JarFile prov

4条回答
  •  心在旅途
    2021-01-13 23:39

    Generally it is a matter of getting to an InputStream and then work with that. This allows you to abstract from most "jar in jar on web server" issues and similar.

    Apparently in this case it is JarFile.getInputStream() and JarInputStream().

提交回复
热议问题