g*****g 发帖数: 34805 | 1 I need to traverse a jar package and process its files,
I can use Class.getResourceAsStream(path) to read the source,
but how to determine if a file is directory since it's now a stream? | h**j 发帖数: 2033 | 2 could you use classes in java.util.jar?
see JarEntry.isDirectory
【在 g*****g 的大作中提到】 : I need to traverse a jar package and process its files, : I can use Class.getResourceAsStream(path) to read the source, : but how to determine if a file is directory since it's now a stream?
|
|