|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provide convenient methods to read information from a Jar archive.
| Method Summary | |
boolean |
containsClass(java.lang.String className)
Returns whether a class of the specified name is contained in the archive. |
void |
expandToPath(java.lang.String path)
Expand the archive to the specified directory. |
java.lang.String |
findResource(java.lang.String name)
Returns the full path of a named resource in the archive. |
java.io.InputStream |
getResource(java.lang.String path)
Returns a resource from the archive as input stream. |
java.util.List |
getResources(java.lang.String path)
Returns the list of resources in the specified directory in the archive. |
| Method Detail |
public boolean containsClass(java.lang.String className)
throws java.io.IOException
className - The name of the class to search for
java.io.IOException - If an I/O error occurred reading the archive
public java.lang.String findResource(java.lang.String name)
throws java.io.IOException
name - The name of the resource
java.io.IOException - If an I/O error occurred reading the archive
public java.io.InputStream getResource(java.lang.String path)
throws java.io.IOException
path - 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 java.util.List getResources(java.lang.String path)
throws java.io.IOException
path - The directory
java.io.IOException - If an I/O error occurs
public void expandToPath(java.lang.String path)
throws java.io.IOException
path - The path to expand to
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 | ||||||||||