question: public static Sha256Hash hashFileContents ( File f ) throws IOException { FileInputStream in = new FileInputStream ( f ) ; try { return create ( ByteStreams . toByteArray ( in ) ) ; } finally { in . close ( ) ; } }
target:  Returns a hash of the given files contents. Reads the file fully into memory before hashing so only use with small files.