|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cactus.integration.ant.deployment.JarArchive
Abstract base class for classes that provide convenient access to the contents of a J2EE deployment archive (EAR or WAR, for example).
| Constructor Summary | |
JarArchive(java.io.File theFile)
Constructor. |
|
JarArchive(java.io.InputStream theInputStream)
Constructor. |
|
| Method Summary | |
boolean |
containsClass(java.lang.String theClassName)
Returns whether a class of the specified name is contained in the archive. |
java.lang.String |
findResource(java.lang.String theName)
Returns the full path of a named resource in the archive. |
java.io.InputStream |
getResource(java.lang.String thePath)
Returns a resource from the archive as input stream. |
java.util.List |
getResources(java.lang.String thePath)
Returns the list of resources in the specified directory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JarArchive(java.io.File theFile)
throws java.io.IOException
theFile - The archive file
java.io.IOException - If there was a problem reading the WAR
public JarArchive(java.io.InputStream theInputStream)
throws java.io.IOException
theInputStream - The input stream for the archive (it will be closed
after the constructor returns)
java.io.IOException - If there was a problem reading the WAR| Method Detail |
public boolean containsClass(java.lang.String theClassName)
throws java.io.IOException
theClassName - The name of the class to search for
java.io.IOException - If an I/O error occurred reading the archive
public final java.lang.String findResource(java.lang.String theName)
throws java.io.IOException
theName - The name of the resource
java.io.IOException - If an I/O error occurred reading the archive
public final java.io.InputStream getResource(java.lang.String thePath)
throws java.io.IOException
thePath - The path to the resource in the archive
null if the resource was not found in the JAR
java.io.IOException - If an I/O error occurs
public final java.util.List getResources(java.lang.String thePath)
throws java.io.IOException
thePath - The directory
java.io.IOException - If an I/O error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||