|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.bisimulationGame.JarResources
public class JarResources
A class for reading resources from a jar file. Inspired by JavaWorld Tip 49
Constructor Summary | |
---|---|
JarResources()
|
Method Summary | |
---|---|
static byte[] |
getResource(java.lang.String jarFileName,
java.lang.String resourceName)
Tries to open a jar file, extract a given resource and return the resource data as a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarResources()
Method Detail |
---|
public static byte[] getResource(java.lang.String jarFileName, java.lang.String resourceName)
jarFileName
- Name of the jar fileresourceName
- Name of the resource file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |