|
|||||||||||
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 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. |
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 archivepublic 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 archivepublic 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 occurspublic 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 |