public static InputStream fileAsStream ( File file ) { try { return new BufferedInputStream ( new FileInputStream ( file ) ) ; } catch ( FileNotFoundException e ) { throw LOG . fileNotFoundException ( file . getAbsolutePath ( ) , e ) ; } }
Returns the input stream of a file .