|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ca.pki.util.GetResource
This class provides methods for retrieving data or image files from a jar file.
| Constructor Summary | |
GetResource()
Default constructor. |
|
| Method Summary | |
java.awt.Image |
getImage(java.lang.String imageFileName)
This method fisrt look at the current directory to see if the file can be found, if not then the jar file will be examined. |
java.awt.Image |
getImageWithoutException(java.lang.String imageFileName)
This method wraps getImage, but supressed the exception, simply returning null if the image is not found. |
java.io.InputStream |
getInputStream(java.lang.String dataFileName)
This method fisrt look at the current directory to see if the file can be found, if not then the jar file will be examined. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GetResource()
| Method Detail |
public java.io.InputStream getInputStream(java.lang.String dataFileName)
throws java.io.FileNotFoundException
dataFileName - a String in the form "path\filename.dat".
It is the user's job to make sure "path" does not contain ".\" nor "..\".
java.io.FileNotFoundException - if file is not in the current dir or in the jar.
public java.awt.Image getImage(java.lang.String imageFileName)
throws java.io.FileNotFoundException
imageFileName - a String in the form "path\filename.gif".
It is the user's job to make sure "path" does not contain ".\" nor "..\".
java.io.FileNotFoundException - if file is not in the current dir or in the jar.public java.awt.Image getImageWithoutException(java.lang.String imageFileName)
imageFileName - a String in the form "path\filename.gif".
It is the user's job to make sure "path" does not contain ".\" nor "..\".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||