|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marc4j.MarcXmlParser
public class MarcXmlParser
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.
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 |
---|
public MarcXmlParser(MarcXmlHandler handler)
handler
- the MarcXmlHandler
objectMethod Detail |
---|
public void parse(InputSource input)
input
- the input sourcepublic void parse(InputSource input, TransformerHandler th)
Record
objects.
input
- the input sourceth
- the transformation content handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |