站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 deployment API Documentation 英文版文档

JarUtils (JBoss JSR-88 Deployment API) - JBoss 4.0.1 sp1 deployment API Documentation 英文版文档


org.jboss.deployment.spi
Class JarUtils

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

public class JarUtils
extends Object

A collection of jar utilities

Version:
$Revision: 1.1.1.1 $
Author:
thomas.diesler@jboss.org

Constructor Summary
JarUtils()
           
 
Method Summary
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
 
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 String[] addJar(JarOutputStream outputStream,
                              String prefix,
                              File jar)
                       throws IOException
Add jar contents to the deployment archive under the given prefix

Throws:
IOException

addJarEntry

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

Throws:
IOException

copyStream

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

Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.