public final DataHasher addData ( File file , int bufferSize ) { Util . notNull ( file , "File" ) ; FileInputStream inStream = null ; try { inStream = new FileInputStream ( file ) ; return addData ( inStream , bufferSize ) ; } catch ( FileNotFoundException e ) { throw new IllegalArgumentException ( "File not found, when calculating data hash" , e ) ; } finally { Util . closeQuietly ( inStream ) ; } }
Adds data to the digest using the specified file starting at the offset 0 .