문제

In java, a jar/zip file is identicall to an directory.

I'll like to get a file from a jar/zip file as if were a directory.

Any one know where to look for.

도움이 되었습니까?

해결책

Is this what you seek for?

InputStream in = this.getClass().getClassLoader()
  .getResourceAsStream("SomeTextFile.txt");

How to really read text file from classpath in Java

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top