@Test public void testReadHashFile() throws Exception { System.out.println( "readHashFile" ); File hashes = new File("testdata/utils/crc32hashes.txt"); Map<String, Long> result = FileHashComparer.readHashes( hashes ); assertEquals( Long.valueOf(0xf735fe81L), result.get(STR_ORACLE_DS) ); assertEquals( Long.valueOf(0x10000000L), result.get(STR_DATASOURCES) ); assertEquals( Long.valueOf(0x20000000L), result.get(STR_NON_EXISTENT) ); }
public static Map<String, Long> readHashes( File file ) throws FileNotFoundException { return readHashes( new FileInputStream(file) ); }
FileHashComparer { public static Map<String, Long> readHashes( File file ) throws FileNotFoundException { return readHashes( new FileInputStream(file) ); } }
FileHashComparer { public static Map<String, Long> readHashes( File file ) throws FileNotFoundException { return readHashes( new FileInputStream(file) ); }  }
FileHashComparer { public static Map<String, Long> readHashes( File file ) throws FileNotFoundException { return readHashes( new FileInputStream(file) ); }  static ComparisonResult compareHashesAndDir( File hashes, File dir, IOFileFilter filter ); static ComparisonResult compareHashesAndDir( InputStream hashesIS, File dir, IOFileFilter filter ); static Map<String, Long> readHashes( File file ); static Map<String, Long> readHashes( InputStream hashesIS ); static long computeCrc32( File file ); }
FileHashComparer { public static Map<String, Long> readHashes( File file ) throws FileNotFoundException { return readHashes( new FileInputStream(file) ); }  static ComparisonResult compareHashesAndDir( File hashes, File dir, IOFileFilter filter ); static ComparisonResult compareHashesAndDir( InputStream hashesIS, File dir, IOFileFilter filter ); static Map<String, Long> readHashes( File file ); static Map<String, Long> readHashes( InputStream hashesIS ); static long computeCrc32( File file );  }