public final class Jars extends Object
| Modifier and Type | Method and Description |
|---|---|
static JarOutputStream |
transform(JarFile jarFile,
JarOutputStream jos,
JarEntryTransformer... transformers)
Transforms the entries with the given
JarFile with the transformers,
to the given JarOutputStream. |
static void |
transform(Path input,
Path output,
JarEntryTransformer... transformers)
|
static Stream<AbstractJarEntry> |
walk(JarFile jarFile)
Walks through the entries within the given
JarFile. |
public static Stream<AbstractJarEntry> walk(JarFile jarFile)
JarFile.jarFile - The jar filepublic static void transform(Path input, Path output, JarEntryTransformer... transformers) throws IOException
input - The input jar pathoutput - The output jar pathtransformers - The transformersIOException - If an I/O exception occurspublic static JarOutputStream transform(JarFile jarFile, JarOutputStream jos, JarEntryTransformer... transformers)
JarFile with the transformers,
to the given JarOutputStream.jarFile - The jar filejos - The jar output streamtransformers - The transformers to apply