Class FileLoaderUtils

java.lang.Object
uk.co.evoco.webdriver.configuration.utils.FileLoaderUtils

public final class FileLoaderUtils
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    FileLoaderUtils()  
  • Method Summary

    Modifier and Type Method Description
    static java.io.File loadFromClasspathOrFileSystem​(java.lang.String path)
    Look for a file to load on a fully qualified path, or the classpath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • loadFromClasspathOrFileSystem

      public static java.io.File loadFromClasspathOrFileSystem​(java.lang.String path) throws java.io.IOException
      Look for a file to load on a fully qualified path, or the classpath
      Parameters:
      path - location to look for file (either relative or classpath)
      Returns:
      File the file that represents the found file on either the path or the classpath
      Throws:
      java.io.IOException - if we can't find the file on the path or the classpath