* objects.
*/
public List<BibtexEntry> importEntries(InputStream stream) throws IOException {
// Obtain a factory object for creating SAX parsers
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
// Configure the factory object to specify attributes of the parsers it
// creates
parserFactory.setValidating(true);
parserFactory.setNamespaceAware(true);
// Now create a SAXParser object
ArrayList<BibtexEntry> bibItems = null;
try {
SAXParser parser = parserFactory.newSAXParser(); // May throw
// exceptions
MedlineHandler handler = new MedlineHandler();
// Start the parser. It reads the file and calls methods of the
// handler.
parser.parse(stream, handler);