org.marc4j
Class MarcXmlParser

java.lang.Object
  extended by org.marc4j.MarcXmlParser

public class MarcXmlParser
extends Object

Creates Record objects from SAX events and pushes each item onto the top of the RecordStack. Used by MarcXmlParserThread. This class requires a JAXP compliant XML parser and XSLT processor. The underlying SAX2 parser should be namespace aware.

Version:
$Revision: 1.2 $
Author:
Bas Peters

Constructor Summary
MarcXmlParser(MarcXmlHandler handler)
          Default constructor.
 
Method Summary
 void parse(InputSource input)
          Calls the parser.
 void parse(InputSource input, TransformerHandler th)
          Calls the parser and tries to transform the source into MARCXML using the given stylesheet source before creating Record objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarcXmlParser

public MarcXmlParser(MarcXmlHandler handler)
Default constructor.

Parameters:
handler - the MarcXmlHandler object
Method Detail

parse

public void parse(InputSource input)
Calls the parser.

Parameters:
input - the input source

parse

public void parse(InputSource input,
                  TransformerHandler th)
Calls the parser and tries to transform the source into MARCXML using the given stylesheet source before creating Record objects.

Parameters:
input - the input source
th - the transformation content handler


Copyright © 2002-2006 Bas Peters. All Rights Reserved.