java.lang.Object
iu.type.PathEntryScanner
Scans a path entry: either a
jar
file or filesystem directory, for
non-folder resources.-
Method Summary
-
Method Details
-
read
Reads a single path entry.This method is not efficient for multiple reads.
- Parameters:
pathEntry
- path entry: jar file or filesystem directoryresourceName
- resource name- Returns:
- full binary contents of the resource
- Throws:
IOException
- if an error occurs while reading the fileNoSuchFileException
- if the resourceName doesn't match an entry in the jar file, or doesn't name a filesystem resource relative topathEntry
.
-
findResources
Scans a path entry.- Parameters:
pathEntry
- path entry: jar file or filesystem directory, to scan- Returns:
- mutable set initialized with all discovered resource names; may be modified after return
- Throws:
IOException
- if an I/O error occurs scanning the path entry
-