|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ice.util.ResourceUtilities
Constructor Summary | |
ResourceUtilities()
|
Method Summary | |
static void |
copyResourceToFile(java.lang.String resourceURL,
java.io.File destFile)
Copies a named resource to a File. |
static java.io.InputStream |
openNamedResource(java.lang.String resourceURL)
Opens a resource and return an InputStream that will read the contents of the resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceUtilities()
Method Detail |
public static void copyResourceToFile(java.lang.String resourceURL, java.io.File destFile) throws java.io.IOException
resourceURL
- The name of the resource to copy.destFile
- The File to copy the resource's contents into.
java.io.IOException
public static java.io.InputStream openNamedResource(java.lang.String resourceURL) throws java.io.IOException
To open a file on the CLASSPATH, use a full class name, with the slash syntax, such "/com/ice/util/ResourceUtilities.class". Note the leading slash.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |