games.strategy.triplea
Class ResourceLoader

java.lang.Object
  extended by games.strategy.triplea.ResourceLoader

public class ResourceLoader
extends java.lang.Object

Utility for managing where images and property files for maps and units should be loaded from. Based on java Classloaders.


Method Summary
 void close()
           
static ResourceLoader getMapresourceLoader(java.lang.String mapName)
           
 java.net.URL getResource(java.lang.String path)
           
 java.io.InputStream getResourceAsStream(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMapresourceLoader

public static ResourceLoader getMapresourceLoader(java.lang.String mapName)

close

public void close()

getResource

public java.net.URL getResource(java.lang.String path)

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String path)