@Test public void testReadAll() throws TransformationException { String allBibTex = StringUtils.join(bibtex, "\n\n"); assertEquals(entries, reader.readAll(allBibTex)); StringReader sr = new StringReader(allBibTex); assertEquals(entries, reader.readAll(sr)); }
@Override public List<BibEntry> readAll(String string, Object... hints) throws TransformationException { List<BibEntry> entries = new ArrayList<BibEntry>(); String[] split = string.split("\n\n"); for (String s : split) { entries.add(processBibteX(s.substring(s.indexOf('@')))); } return entries; }
BibTeXToBibEntryReader implements FormatToModelReader<BibEntry> { @Override public List<BibEntry> readAll(String string, Object... hints) throws TransformationException { List<BibEntry> entries = new ArrayList<BibEntry>(); String[] split = string.split("\n\n"); for (String s : split) { entries.add(processBibteX(s.substring(s.indexOf('@')))); } return entries; } }
BibTeXToBibEntryReader implements FormatToModelReader<BibEntry> { @Override public List<BibEntry> readAll(String string, Object... hints) throws TransformationException { List<BibEntry> entries = new ArrayList<BibEntry>(); String[] split = string.split("\n\n"); for (String s : split) { entries.add(processBibteX(s.substring(s.indexOf('@')))); } return entries; }  }
BibTeXToBibEntryReader implements FormatToModelReader<BibEntry> { @Override public List<BibEntry> readAll(String string, Object... hints) throws TransformationException { List<BibEntry> entries = new ArrayList<BibEntry>(); String[] split = string.split("\n\n"); for (String s : split) { entries.add(processBibteX(s.substring(s.indexOf('@')))); } return entries; }  @Override BibEntry read(String string, Object... hints); @Override BibEntry read(Reader reader, Object... hints); @Override List<BibEntry> readAll(String string, Object... hints); @Override List<BibEntry> readAll(Reader reader, Object... hints); }
BibTeXToBibEntryReader implements FormatToModelReader<BibEntry> { @Override public List<BibEntry> readAll(String string, Object... hints) throws TransformationException { List<BibEntry> entries = new ArrayList<BibEntry>(); String[] split = string.split("\n\n"); for (String s : split) { entries.add(processBibteX(s.substring(s.indexOf('@')))); } return entries; }  @Override BibEntry read(String string, Object... hints); @Override BibEntry read(Reader reader, Object... hints); @Override List<BibEntry> readAll(String string, Object... hints); @Override List<BibEntry> readAll(Reader reader, Object... hints);  }