anu*_*sth 7 java embedded-resource java-me
Why public InputStream getResourceAsStream(String name) is in Class class? It just give inputstream of file which is in jar file and there is no relation with Class class. so it can be static method and it can be in any class.
Jon*_*eet 10
还有就是对类的关系:
getResourceAsStream("baz.txt")给课程,foo.bar.SomeClass它会寻找/foo/bar/baz.txt| 归档时间: |
|
| 查看次数: |
833 次 |
| 最近记录: |