public static Dependencies load ( final File file ) { Utils4J . checkNotNull ( "file" , file ) ; Utils4J . checkValidFile ( file ) ; try { final InputStream inputStream = new BufferedInputStream ( new FileInputStream ( file ) ) ; try { return load ( inputStream ) ; } finally { inputStream . close ( ) ; } } catch ( final IOException ex ) { throw new RuntimeException ( ex ) ; } }
Load dependencies from a file .