|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.sma.simulacion.app.Bundle
public final class Bundle
Classe pour gérer les données dans le fichier .jar ou séparées (MacOS X).
| Constructor Summary | |
|---|---|
private |
Bundle()
Constructeur par défaut non disponible. |
| Method Summary | |
|---|---|
private static String |
getAbsolutePath(String inPath)
Get an absolute path from a given path (which can already be absolute). |
static AudioClip |
getAudioClip(String inPath)
Accesseur sur un son. |
static Image |
getImage(String inPath)
Accesseur sur une image. |
static URL |
getResource(String inPath)
Accesseur sur une ressource. |
static InputStream |
getResourceAsStream(String inPath)
Accesseur sur une ressource via un flux. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Bundle()
| Method Detail |
|---|
public static URL getResource(String inPath)
inPath - le chemin de la ressource (e.g. etc/simbar.xml)
public static InputStream getResourceAsStream(String inPath)
inPath - le chemin de la ressource (e.g. etc/simbar.xml)
public static Image getImage(String inPath)
inPath - le chemin de l'image (e.g. artwork/foo.png)
public static AudioClip getAudioClip(String inPath)
inPath - le chemin du son.
private static String getAbsolutePath(String inPath)
inPath - path to make absolute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||