public final class JarUtils extends Object
| Constructor and Description |
|---|
JarUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
addJar(JarOutputStream outputStream,
String prefix,
File jar)
Add jar contents to the deployment archive under the given prefix
|
static void |
addJarEntry(JarOutputStream outputStream,
String entryName,
InputStream inputStream)
Add a jar entry to the deployment archive
|
static void |
copyStream(OutputStream outputStream,
InputStream inputStream)
Copies the input stream to the output stream
|
public static String[] addJar(JarOutputStream outputStream, String prefix, File jar) throws IOException
IOExceptionpublic static void addJarEntry(JarOutputStream outputStream, String entryName, InputStream inputStream) throws IOException
IOExceptionpublic static void copyStream(OutputStream outputStream, InputStream inputStream) throws IOException
IOExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.