|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.util.JarResources
public final class JarResources
JarResources: JarResources maps all resources included in a Zip or Jar file. Additionaly, it provides a method to extract one as a blob.
Field Summary | |
---|---|
boolean |
debugOn
|
Constructor Summary | |
---|---|
JarResources(java.lang.String jarFileName)
creates a JarResources. |
Method Summary | |
---|---|
byte[] |
getResource(java.lang.String name)
Extracts a jar resource as a blob. |
static void |
main(java.lang.String[] args)
Is a test driver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean debugOn
Constructor Detail |
---|
public JarResources(java.lang.String jarFileName)
jarFileName
- a jar or zip fileMethod Detail |
---|
public byte[] getResource(java.lang.String name)
name
- a resource name.public static void main(java.lang.String[] args) throws java.io.IOException
... JarResources JR=new JarResources("GifBundle.jar"); Image image=Toolkit.createImage(JR.getResource("logo.gif"); Image logo=Toolkit.getDefaultToolkit().createImage( JR.getResources("logo.gif") ); ...
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |