@Test public void testClean() { char ci = 0x0107; char c = 0x63; char acute = 0x301; String input = Character.toString(ci); String expected = Character.toString(c) + Character.toString(acute); String actual = MetadataTools.cleanAndNormalize(input); assertEquals(expected, actual); char dash = 0x2014; input = Character.toString(dash); expected = "-"; actual = MetadataTools.cleanAndNormalize(input); assertEquals(expected, actual); }
public static String cleanAndNormalize(String str) { return Normalizer.normalize(ContentCleaner.cleanAllAndBreaks(str), Normalizer.Form.NFKD); }
MetadataTools { public static String cleanAndNormalize(String str) { return Normalizer.normalize(ContentCleaner.cleanAllAndBreaks(str), Normalizer.Form.NFKD); } }
MetadataTools { public static String cleanAndNormalize(String str) { return Normalizer.normalize(ContentCleaner.cleanAllAndBreaks(str), Normalizer.Form.NFKD); }  }
MetadataTools { public static String cleanAndNormalize(String str) { return Normalizer.normalize(ContentCleaner.cleanAllAndBreaks(str), Normalizer.Form.NFKD); }  static String cleanAndNormalize(String str); }
MetadataTools { public static String cleanAndNormalize(String str) { return Normalizer.normalize(ContentCleaner.cleanAllAndBreaks(str), Normalizer.Form.NFKD); }  static String cleanAndNormalize(String str);  }