|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.io.IOUtils
org.mule.util.IOUtils
Mule input/output utilities.
| Constructor Summary | |
IOUtils()
|
|
| Method Summary | |
static InputStream |
getResourceAsStream(String resourceName,
Class callingClass)
Attempts to load a resource from the file system, from a URL, or from the classpath, in that order. |
static InputStream |
getResourceAsStream(String resourceName,
Class callingClass,
boolean tryAsFile,
boolean tryAsUrl)
Attempts to load a resource from the file system, from a URL, or from the classpath, in that order. |
static String |
getResourceAsString(String resourceName,
Class callingClass)
Attempts to load a resource from the file system, from a URL, or from the classpath, in that order. |
static URL |
getResourceAsUrl(String resourceName,
Class callingClass)
Attempts to load a resource from the file system or from the classpath, in that order. |
static URL |
getResourceAsUrl(String resourceName,
Class callingClass,
boolean tryAsFile)
Attempts to load a resource from the file system or from the classpath, in that order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IOUtils()
| Method Detail |
public static String getResourceAsString(String resourceName,
Class callingClass)
throws IOException
resourceName - The name of the resource to loadcallingClass - The Class object of the calling object
IOException - IO error
public static InputStream getResourceAsStream(String resourceName,
Class callingClass)
throws IOException
resourceName - The name of the resource to loadcallingClass - The Class object of the calling object
IOException - IO error
public static InputStream getResourceAsStream(String resourceName,
Class callingClass,
boolean tryAsFile,
boolean tryAsUrl)
throws IOException
resourceName - The name of the resource to loadcallingClass - The Class object of the calling objecttryAsFile - - try to load the resource from the local file systemtryAsUrl - - try to load the resource as a URL
IOException - IO error
public static URL getResourceAsUrl(String resourceName,
Class callingClass)
resourceName - The name of the resource to loadcallingClass - The Class object of the calling object
public static URL getResourceAsUrl(String resourceName,
Class callingClass,
boolean tryAsFile)
resourceName - The name of the resource to loadcallingClass - The Class object of the calling objecttryAsFile - - try to load the resource from the local file system
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||