|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.edsdev.jconvert.util.ResourceManager
To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
| Constructor Summary | |
ResourceManager()
|
|
| Method Summary | |
static java.awt.Image |
getImage(java.lang.String imageRelativeURL)
Loads and Image from the classpath as a resource |
static javax.swing.ImageIcon |
getImageIcon(java.lang.String imageRelativeURL)
Gets and ImageIcom from the classloader based on the image resource URL |
static java.lang.String |
getJarPath()
Responsible for determining what the path is to the jar file. |
static java.io.InputStream |
getResourceAsStream(java.lang.String resourceName)
Attempts to find a resource in the classpath and returns an InputStream to that resrouce |
static java.util.Properties |
loadProperties(java.io.InputStream Istream)
Loads properties from an InputStream into a Properties object |
static java.util.Properties |
loadProperties(java.lang.String filename)
Loads a properties file from the classpath based on the name provided |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceManager()
| Method Detail |
public static java.awt.Image getImage(java.lang.String imageRelativeURL)
imageRelativeURL - relative url of the image you want to get
public static java.util.Properties loadProperties(java.lang.String filename)
throws java.io.IOException
filename - Name of the file you want to load
java.io.IOExceptionpublic static java.io.InputStream getResourceAsStream(java.lang.String resourceName)
resourceName - name of the resource you want to get as a stream
public static java.lang.String getJarPath()
public static java.util.Properties loadProperties(java.io.InputStream Istream)
throws java.io.IOException
Istream - stream from which to load the properties file
java.io.IOExceptionpublic static javax.swing.ImageIcon getImageIcon(java.lang.String imageRelativeURL)
imageRelativeURL - relative url to load the image icon from
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||