universe.common
Class UniverseData

java.lang.Object
  |
  +--universe.common.UniverseData

public class UniverseData
extends java.lang.Object


Field Summary
private static java.lang.String CHECK_FILE
           
private static java.net.URLClassLoader classLoader
           
private static UniverseData singleton
           
 
Constructor Summary
private UniverseData()
           
 
Method Summary
static void checkDataPresent()
          Checks the presence of the UniverseData.jar file, and, if not present, informs the user and exits.
static javax.swing.ImageIcon getImageIcon(java.lang.String name)
          get an ImageIcon
static java.io.InputStream getInputStream(java.lang.String name)
          gets an InputStream to the named resource
static java.io.InputStreamReader getInputStreamReader(java.lang.String name)
          gets an InputStreamReader to the named resource.
static java.net.URL getURL(java.lang.String name)
          Given a resource name, extract a URL for the given resource.
static boolean isDataPresent()
          Check if the UniverseData.jar (or whatever it is named) is available (on the classpath).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private static UniverseData singleton

classLoader

private static java.net.URLClassLoader classLoader

CHECK_FILE

private static final java.lang.String CHECK_FILE
See Also:
Constant Field Values
Constructor Detail

UniverseData

private UniverseData()
Method Detail

isDataPresent

public static boolean isDataPresent()
Check if the UniverseData.jar (or whatever it is named) is available (on the classpath).


checkDataPresent

public static void checkDataPresent()
Checks the presence of the UniverseData.jar file, and, if not present, informs the user and exits.


getURL

public static java.net.URL getURL(java.lang.String name)
Given a resource name, extract a URL for the given resource.


getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String name)
get an ImageIcon


getInputStream

public static java.io.InputStream getInputStream(java.lang.String name)
                                          throws java.io.IOException
gets an InputStream to the named resource

java.io.IOException

getInputStreamReader

public static java.io.InputStreamReader getInputStreamReader(java.lang.String name)
                                                      throws java.io.IOException
gets an InputStreamReader to the named resource.

java.io.IOException


Copyright © 2001 Universe Dev Team All Rights Reserved.