public class Archive
extends java.lang.Object
Constructor and Description |
---|
Archive() |
Modifier and Type | Method and Description |
---|---|
Archive |
add(java.lang.Class<?> clazz) |
Archive |
add(java.lang.String name,
Archive archive) |
Archive |
add(java.lang.String name,
byte[] bytes) |
Archive |
add(java.lang.String name,
java.io.File content) |
Archive |
add(java.lang.String name,
java.lang.String content) |
Archive |
add(java.lang.String name,
java.util.function.Supplier<byte[]> content) |
Archive |
add(java.lang.String name,
java.net.URL content) |
Archive |
addDir(java.io.File dir) |
Archive |
addJar(java.io.File file) |
static Archive |
archive() |
Archive |
manifest(java.lang.String key,
java.lang.Class value) |
Archive |
manifest(java.lang.String key,
java.lang.Object value) |
java.io.File |
toDir() |
void |
toDir(java.io.File dir) |
java.io.File |
toJar() |
java.io.File |
toJar(java.io.File file) |
public static Archive archive()
public Archive manifest(java.lang.String key, java.lang.Object value)
public Archive manifest(java.lang.String key, java.lang.Class value)
public Archive add(java.lang.String name, byte[] bytes)
public Archive add(java.lang.String name, java.util.function.Supplier<byte[]> content)
public Archive add(java.lang.String name, java.lang.String content)
public Archive add(java.lang.String name, java.io.File content)
public Archive add(java.lang.String name, java.net.URL content)
public Archive add(java.lang.Class<?> clazz)
public Archive addDir(java.io.File dir)
public Archive addJar(java.io.File file)
public java.io.File toJar()
public java.io.File toJar(java.io.File file)
public java.io.File toDir()
public void toDir(java.io.File dir)