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
IOException
public static void addJarEntry(JarOutputStream outputStream, String entryName, InputStream inputStream) throws IOException
IOException
public static void copyStream(OutputStream outputStream, InputStream inputStream) throws IOException
IOException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.