public static File getResourceAsFile ( ClassLoader loader , String resource ) throws IOException { return new File ( getResourceURL ( loader , resource ) . getFile ( ) ) ; }
Returns a resource on the classpath as a File object