Class ConfigLoader

java.lang.Object
org.deltava.util.ConfigLoader

public class ConfigLoader extends Object
A utility class to support loading configuration resources on the local filesystem. This class ensures similar behavior when running in a servlet container or within the Eclipse Workbench.
Since:
1.0
Version:
4.2
Author:
Luke
  • Method Details

    • getStream

      public static InputStream getStream(String fName) throws IOException
      Retrieves a resource as an input stream.
      Parameters:
      fName - the file name
      Returns:
      an InputStream to the file
      Throws:
      IOException - if the file does not exist