Package aQute.lib.zip
Class JarIndex
- java.lang.Object
-
- aQute.lib.hierarchy.Hierarchy
-
- aQute.lib.zip.JarIndex
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJarIndex.NodeInfo
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternPATH_SPLITTER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidaddFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String[] parts, int i, java.lang.String path, java.lang.Object payload)private static voidaddFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String path, java.lang.Object payload)private static java.util.Map<java.lang.String,java.lang.Object>build(java.io.File file, java.util.regex.Pattern doNotCopy, java.util.function.Function<JarIndex.NodeInfo,?> f)private static java.util.Map<java.lang.String,java.lang.Object>buildFromDirectory(java.nio.file.Path baseDir, java.util.regex.Pattern doNotCopy, java.util.function.Function<JarIndex.NodeInfo,?> f)private static java.util.Map<java.lang.String,java.lang.Object>buildFromInputStream(java.io.InputStream in, java.util.function.Function<JarIndex.NodeInfo,?> f)private static java.util.Map<java.lang.String,java.lang.Object>buildFromZip(java.io.File file, java.util.function.Function<JarIndex.NodeInfo,?> f)private static JarIndex.NodeInfogetNodeInfo(java.io.File in)private static JarIndex.NodeInfogetNodeInfo(java.util.zip.ZipEntry entry, SupplierWithException<java.io.InputStream> open)private static java.lang.ObjectgetPayload(java.util.function.Function<JarIndex.NodeInfo,?> f, JarIndex.NodeInfo nodeInfo)-
Methods inherited from class aQute.lib.hierarchy.Hierarchy
asMap, find, find, findFolder, findFolder, iterator, payload, size, stream
-
-
-
-
Constructor Detail
-
JarIndex
public JarIndex(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
JarIndex
public JarIndex(java.io.File in) throws java.io.IOException- Throws:
java.io.IOException
-
JarIndex
public JarIndex(java.io.File in, java.util.regex.Pattern doNotCopy) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
build
private static java.util.Map<java.lang.String,java.lang.Object> build(java.io.File file, java.util.regex.Pattern doNotCopy, java.util.function.Function<JarIndex.NodeInfo,?> f) throws java.io.IOException- Throws:
java.io.IOException
-
buildFromDirectory
private static java.util.Map<java.lang.String,java.lang.Object> buildFromDirectory(java.nio.file.Path baseDir, java.util.regex.Pattern doNotCopy, java.util.function.Function<JarIndex.NodeInfo,?> f) throws java.io.IOException- Throws:
java.io.IOException
-
buildFromZip
private static java.util.Map<java.lang.String,java.lang.Object> buildFromZip(java.io.File file, java.util.function.Function<JarIndex.NodeInfo,?> f) throws java.io.IOException- Throws:
java.io.IOException
-
buildFromInputStream
private static java.util.Map<java.lang.String,java.lang.Object> buildFromInputStream(java.io.InputStream in, java.util.function.Function<JarIndex.NodeInfo,?> f) throws java.io.IOException- Throws:
java.io.IOException
-
getPayload
private static java.lang.Object getPayload(java.util.function.Function<JarIndex.NodeInfo,?> f, JarIndex.NodeInfo nodeInfo)
-
addFile
private static void addFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String path, java.lang.Object payload)
-
addFile
private static void addFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String[] parts, int i, java.lang.String path, java.lang.Object payload)
-
getNodeInfo
private static JarIndex.NodeInfo getNodeInfo(java.io.File in)
-
getNodeInfo
private static JarIndex.NodeInfo getNodeInfo(java.util.zip.ZipEntry entry, SupplierWithException<java.io.InputStream> open)
-
-