Class InMemoryJar
java.lang.Object
org.jrd.backend.data.cli.InMemoryJar
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ByteArrayOutputStreamprivate Manifest(package private) JarOutputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate static voidaddFile(JarOutputStream target, byte[] body, String fqn) voidaddToManifest(String key, String value) voidclose()voidopen()openJar(OutputStream os) save()voidvoidsetMainClass(String mainFqn) voidbyte[]toBytes()
-
Field Details
-
manifest
-
bos
-
target
JarOutputStream target
-
-
Constructor Details
-
InMemoryJar
public InMemoryJar()
-
-
Method Details
-
startManifest
public void startManifest() -
setMainClass
-
addToManifest
-
openJar
- Throws:
IOException
-
addFile
- Throws:
IOException
-
addFile
- Throws:
IOException
-
open
- Throws:
IOException
-
close
- Throws:
IOException
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
toBytes
- Throws:
IOException
-