public final class ResourceIO extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyResource(String pathToResource,
File outputLocation)
Copy any resource to an output location.
|
static InputStream |
getResourceAsStream(String resourceLocation)
Get an input stream for a resource file within the jar.
|
static ZipInputStream |
getResourceAsZipStream(String resourceLocation)
Get a zip input stream for a resource file within the jar.
|
public static InputStream getResourceAsStream(String resourceLocation) throws IOException
resourceLocation - the path in jndi to the resourceIOException - If the resource cannot be found or there was a problem
reading the filepublic static ZipInputStream getResourceAsZipStream(String resourceLocation) throws IOException
resourceLocation - the path in jndi to the resourceIOException - If the resource cannot be found or there was a problem
reading the filepublic static void copyResource(String pathToResource, File outputLocation) throws IOException
pathToResource - the path in jndi to the resourceoutputLocation - the location to copy the resource toIOException - if there is a problem copying the resourceCopyright © 2015. All Rights Reserved.