public static void main(String args[]) throws Exception {
InputStream input = ReadMarcExample.class
.getResourceAsStream("resources/summerland.mrc");
MarcReader reader = new MarcStreamReader(input);
// OutputFormat format = new OutputFormat("xml", "UTF-8", true);
// XMLSerializer serializer = new XMLSerializer(System.out, format);
// Result result = new SAXResult(serializer.asContentHandler());
// MarcXmlWriter writer = new MarcXmlWriter(result);
// writer.setConverter(new AnselToUnicode());
while (reader.hasNext()) {
Record record = reader.next();
// writer.write(record);
}
// writer.close();
}