@Test public void testJoinCreators() { assertEquals("Mr B", new JempboxExtractor(null).joinCreators( Arrays.asList("Mr B"))); assertEquals("Mr B, Mr A", new JempboxExtractor(null).joinCreators( Arrays.asList("Mr B", "Mr A"))); }
protected static String joinCreators(List<String> creators) { if (creators == null || creators.size() == 0) { return ""; } if (creators.size() == 1) { return creators.get(0); } StringBuffer c = new StringBuffer(); for (String s : creators) { c.append(", ").append(s); } return c.substring(2); }
JempboxExtractor { protected static String joinCreators(List<String> creators) { if (creators == null || creators.size() == 0) { return ""; } if (creators.size() == 1) { return creators.get(0); } StringBuffer c = new StringBuffer(); for (String s : creators) { c.append(", ").append(s); } return c.substring(2); } }
JempboxExtractor { protected static String joinCreators(List<String> creators) { if (creators == null || creators.size() == 0) { return ""; } if (creators.size() == 1) { return creators.get(0); } StringBuffer c = new StringBuffer(); for (String s : creators) { c.append(", ").append(s); } return c.substring(2); } JempboxExtractor(Metadata metadata); }
JempboxExtractor { protected static String joinCreators(List<String> creators) { if (creators == null || creators.size() == 0) { return ""; } if (creators.size() == 1) { return creators.get(0); } StringBuffer c = new StringBuffer(); for (String s : creators) { c.append(", ").append(s); } return c.substring(2); } JempboxExtractor(Metadata metadata); void parse(InputStream file); static void extractDublinCore(XMPMetadata xmpMetadata, Metadata metadata); static void extractXMPMM(XMPMetadata xmp, Metadata metadata); static void setMaxXMPMMHistory(int maxEvents); static int getMaxXMPMMHistory(); }
JempboxExtractor { protected static String joinCreators(List<String> creators) { if (creators == null || creators.size() == 0) { return ""; } if (creators.size() == 1) { return creators.get(0); } StringBuffer c = new StringBuffer(); for (String s : creators) { c.append(", ").append(s); } return c.substring(2); } JempboxExtractor(Metadata metadata); void parse(InputStream file); static void extractDublinCore(XMPMetadata xmpMetadata, Metadata metadata); static void extractXMPMM(XMPMetadata xmp, Metadata metadata); static void setMaxXMPMMHistory(int maxEvents); static int getMaxXMPMMHistory();  }