Package aQute.lib.zip
Class JarIndex
java.lang.Object
aQute.lib.hierarchy.Hierarchy
aQute.lib.zip.JarIndex
Creates a Hierarchy on a ZipFile, a directory, or a ZipStream.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
build
(File file, Pattern doNotCopy, Function<JarIndex.NodeInfo, ?> f) buildFromDirectory
(Path baseDir, Pattern doNotCopy, Function<JarIndex.NodeInfo, ?> f) buildFromZip
(File file, Function<JarIndex.NodeInfo, ?> f) private static JarIndex.NodeInfo
getNodeInfo
(File in) private static JarIndex.NodeInfo
getNodeInfo
(ZipEntry entry, SupplierWithException<InputStream> open) private static Object
getPayload
(Function<JarIndex.NodeInfo, ?> f, JarIndex.NodeInfo nodeInfo) Methods inherited from class aQute.lib.hierarchy.Hierarchy
asMap, find, find, findFolder, findFolder, iterator, payload, size, stream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
PATH_SPLITTER
-
-
Constructor Details
-
JarIndex
- Throws:
IOException
-
JarIndex
- Throws:
IOException
-
JarIndex
- Throws:
IOException
-
-
Method Details
-
build
private static Map<String,Object> build(File file, Pattern doNotCopy, Function<JarIndex.NodeInfo, ?> f) throws IOException- Throws:
IOException
-
buildFromDirectory
private static Map<String,Object> buildFromDirectory(Path baseDir, Pattern doNotCopy, Function<JarIndex.NodeInfo, ?> f) throws IOException- Throws:
IOException
-
buildFromZip
private static Map<String,Object> buildFromZip(File file, Function<JarIndex.NodeInfo, ?> f) throws IOException- Throws:
IOException
-
buildFromInputStream
private static Map<String,Object> buildFromInputStream(InputStream in, Function<JarIndex.NodeInfo, ?> f) throws IOException- Throws:
IOException
-
getPayload
-
addFile
-
addFile
-
getNodeInfo
-
getNodeInfo
private static JarIndex.NodeInfo getNodeInfo(ZipEntry entry, SupplierWithException<InputStream> open)
-