public interface JarArchive
Modifier and Type | Method and Description |
---|---|
boolean |
containsClass(String className)
Returns whether a class of the specified name is contained in the archive.
|
void |
expandToPath(String path)
Expand the archive to the specified directory.
|
String |
findResource(String name)
Returns the full path of a named resource in the archive.
|
InputStream |
getResource(String path)
Returns a resource from the archive as input stream.
|
List |
getResources(String path)
Returns the list of resources in the specified directory in the archive.
|
boolean containsClass(String className) throws IOException
className
- The name of the class to search forIOException
- If an I/O error occurred reading the archiveString findResource(String name) throws IOException
name
- The name of the resourceIOException
- If an I/O error occurred reading the archiveInputStream getResource(String path) throws IOException
path
- The path to the resource in the archivenull
if the resource was not found in the JARIOException
- If an I/O error occursList getResources(String path) throws IOException
path
- The directoryIOException
- If an I/O error occursvoid expandToPath(String path) throws IOException
path
- The path to expand toIOException
- If an I/O error occursCopyright © 2004-2013 Codehaus. All Rights Reserved.