|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JarArchive
Provide convenient methods to read information from a Jar archive.
Method Summary | |
---|---|
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. |
void |
expandToPath(String path,
FileFilter filter)
Expand the archive to the specified directory, filtering out files. |
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. |
Method Detail |
---|
boolean containsClass(String className) throws IOException
className
- The name of the class to search for
IOException
- If an I/O error occurred reading the archiveString findResource(String name) throws IOException
name
- The name of the resource
IOException
- If an I/O error occurred reading the archiveInputStream getResource(String path) throws IOException
path
- The path to the resource in the archive
null
if the resource was not found in the JAR
IOException
- If an I/O error occursList getResources(String path) throws IOException
path
- The directory
IOException
- If an I/O error occursvoid expandToPath(String path) throws IOException
path
- The path to expand to
IOException
- If an I/O error occursvoid expandToPath(String path, FileFilter filter) throws IOException
path
- The path to expand tofilter
- The filter to use
IOException
- If an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |