org.mule.module.db.internal.util
Class DefaultFileReader

java.lang.Object
  extended by org.mule.module.db.internal.util.DefaultFileReader
All Implemented Interfaces:
FileReader

public class DefaultFileReader
extends Object
implements FileReader

Reads files using IOUtils


Constructor Summary
DefaultFileReader()
           
 
Method Summary
 String getResourceAsString(String resourceName)
          Attempts to load a resource from the file system, from a URL, 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

DefaultFileReader

public DefaultFileReader()
Method Detail

getResourceAsString

public String getResourceAsString(String resourceName)
                           throws IOException
Description copied from interface: FileReader
Attempts to load a resource from the file system, from a URL, or from the classpath, in that order.

Specified by:
getResourceAsString in interface FileReader
Parameters:
resourceName - The name of the resource to load
Returns:
the requested resource as a string
Throws:
IOException - in case of an IO error


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.