|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.util.DeploymentArchive
public class DeploymentArchive
Deployment archive.
Constructor Summary | |
---|---|
DeploymentArchive(java.lang.String archiveName)
Public constructor. |
Method Summary | |
---|---|
void |
addEntry(java.lang.Class clazz)
Add the supplied class as an entry in the deployment. |
void |
addEntry(java.lang.String path)
Add an "empty" entry in the deployment. |
void |
addEntry(java.lang.String path,
byte[] data)
Add the supplied data as an entry in the deployment. |
void |
addEntry(java.lang.String path,
java.io.InputStream data)
Add the supplied data as an entry in the deployment. |
void |
addEntry(java.lang.String path,
java.lang.String resource)
Add the specified classpath resource as an entry in the deployment. |
java.lang.String |
getArchiveName()
Get the name of the deployment associated with this archive. |
java.util.jar.JarInputStream |
toInputStream()
Create a JarInputStream for the entries defined in this
archive. |
void |
toOutputStream(java.io.OutputStream outputStream)
Create an archive of the specified name and containing entries for the data contained in the streams supplied entries arg. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeploymentArchive(java.lang.String archiveName)
archiveName
- The archive name of the deployment.Method Detail |
---|
public java.lang.String getArchiveName()
public void addEntry(java.lang.String path, java.io.InputStream data)
path
- The target path of the entry when added to the archive.data
- The data.public void addEntry(java.lang.String path, byte[] data)
path
- The target path of the entry when added to the archive.data
- The data.public void addEntry(java.lang.String path)
path
- The target path of the entry when added to the archive.public void addEntry(java.lang.String path, java.lang.String resource) throws java.io.IOException
path
- The target path of the entry when added to the archive.resource
- The classpath resource.
java.io.IOException
- Failed to read resource from classpath.public void addEntry(java.lang.Class clazz) throws java.io.IOException
clazz
- The class to be added.
java.io.IOException
- Failed to read class from classpath.public void toOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- The archive output stream.
java.io.IOException
- Write failure.public java.util.jar.JarInputStream toInputStream() throws java.io.IOException
JarInputStream
for the entries defined in this
archive.
JarInputStream
for the entries in this archive.
java.io.IOException
- Failed to create stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |