Package org.jrd.backend.data.cli
Class InMemoryJar
java.lang.Object
org.jrd.backend.data.cli.InMemoryJar
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ByteArrayOutputStream
private Manifest
(package private) JarOutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static void
addFile
(JarOutputStream target, byte[] body, String fqn) void
addToManifest
(String key, String value) void
close()
void
open()
openJar
(OutputStream os) save()
void
void
setMainClass
(String mainFqn) void
byte[]
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
-