org.jboss.deployment.spi
Class JarUtils

java.lang.Object
  extended byorg.jboss.deployment.spi.JarUtils

public class JarUtils
extends java.lang.Object

A collection of jar utilities


Constructor Summary
JarUtils()
           
 
Method Summary
static java.lang.String[] addJar(java.util.jar.JarOutputStream outputStream, java.lang.String prefix, java.io.File jar)
          Add jar contents to the deployment archive under the given prefix
static void addJarEntry(java.util.jar.JarOutputStream outputStream, java.lang.String entryName, java.io.InputStream inputStream)
          Add a jar entry to the deployment archive
static void copyStream(java.io.OutputStream outputStream, java.io.InputStream inputStream)
          Copies the input stream to the output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarUtils

public JarUtils()
Method Detail

addJar

public static java.lang.String[] addJar(java.util.jar.JarOutputStream outputStream,
                                        java.lang.String prefix,
                                        java.io.File jar)
                                 throws java.io.IOException
Add jar contents to the deployment archive under the given prefix

Throws:
java.io.IOException

addJarEntry

public static void addJarEntry(java.util.jar.JarOutputStream outputStream,
                               java.lang.String entryName,
                               java.io.InputStream inputStream)
                        throws java.io.IOException
Add a jar entry to the deployment archive

Throws:
java.io.IOException

copyStream

public static void copyStream(java.io.OutputStream outputStream,
                              java.io.InputStream inputStream)
                       throws java.io.IOException
Copies the input stream to the output stream

Throws:
java.io.IOException