Class MarcXmlFilter
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- org.marc4j.marcxml.ExtendedFilter
-
- org.marc4j.marcxml.MarcXmlFilter
-
- All Implemented Interfaces:
MarcHandler
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
,XMLFilter
,XMLReader
@Deprecated public class MarcXmlFilter extends ExtendedFilter implements MarcHandler
Deprecated.This class has been replaced byMarcXmlReader
MarcXmlFilter
is anXMLFilter
that consumesMarcHandler
events and reports events to a SAX2ContentHandler
.- Author:
- Bas Peters
- See Also:
ExtendedFilter
,MarcHandler
,ContentHandler
-
-
Field Summary
-
Fields inherited from class org.marc4j.marcxml.ExtendedFilter
lh
-
-
Constructor Summary
Constructors Constructor Description MarcXmlFilter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
controlField(String tag, char[] data, Long id)
Deprecated.Reports a control field node (001-009).void
endCollection()
Deprecated.Reports the closing element for the root, reports the end of the prefix mapping and the end a document.void
endDataField(String tag)
Deprecated.Reports the closing element for a data field.void
endRecord()
Deprecated.Reports the closing element for a record.void
parse(InputSource input)
Deprecated.Sends the input source to theMarcReader
.void
setFeature(String name, boolean value)
Deprecated.Sets the boolean for the feature with the given name.void
setProperty(String name, Object obj)
Deprecated.Sets the object for the given property.void
startCollection()
Deprecated.Returns the document handler being used, starts the document and reports the root element.void
startDataField(String tag, char ind1, char ind2, Long id)
Deprecated.Reports the starting element for a data field (010-999).void
startRecord(Leader leader)
Deprecated.Reports the starting element for a record and the leader node.void
subfield(char code, char[] data, String linkCode)
Deprecated.Reports a subfield node.-
Methods inherited from class org.marc4j.marcxml.ExtendedFilter
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
setProperty
public void setProperty(String name, Object obj) throws SAXNotRecognizedException, SAXNotSupportedException
Deprecated.Sets the object for the given property.
- Specified by:
setProperty
in interfaceXMLReader
- Overrides:
setProperty
in classExtendedFilter
- Parameters:
name
- the property nameobj
- the property object- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
Deprecated.Sets the boolean for the feature with the given name.
- Specified by:
setFeature
in interfaceXMLReader
- Overrides:
setFeature
in classXMLFilterImpl
- Parameters:
name
- the name of the featurevalue
- the boolean value- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
parse
public void parse(InputSource input)
Deprecated.Sends the input source to the
MarcReader
.- Specified by:
parse
in interfaceXMLReader
- Overrides:
parse
in classXMLFilterImpl
- Parameters:
input
- theInputSource
-
startCollection
public void startCollection()
Deprecated.Returns the document handler being used, starts the document and reports the root element.
- Specified by:
startCollection
in interfaceMarcHandler
-
startRecord
public void startRecord(Leader leader)
Deprecated.Reports the starting element for a record and the leader node.
- Specified by:
startRecord
in interfaceMarcHandler
- Parameters:
leader
- the leader
-
controlField
public void controlField(String tag, char[] data, Long id)
Deprecated.Reports a control field node (001-009).
- Specified by:
controlField
in interfaceMarcHandler
- Parameters:
tag
- the tag namedata
- the data elementid
- the field id if exists.
-
startDataField
public void startDataField(String tag, char ind1, char ind2, Long id)
Deprecated.Reports the starting element for a data field (010-999).
- Specified by:
startDataField
in interfaceMarcHandler
- Parameters:
tag
- the tag nameind1
- the first indicator valueind2
- the second indicator valueid
- the field id if exists.
-
subfield
public void subfield(char code, char[] data, String linkCode)
Deprecated.Reports a subfield node.
- Specified by:
subfield
in interfaceMarcHandler
- Parameters:
code
- the data element identifierdata
- the data elementlinkCode
- a code if the subfield has a link with another Record
-
endDataField
public void endDataField(String tag)
Deprecated.Reports the closing element for a data field.
- Specified by:
endDataField
in interfaceMarcHandler
- Parameters:
tag
- the tag name
-
endRecord
public void endRecord()
Deprecated.Reports the closing element for a record.
- Specified by:
endRecord
in interfaceMarcHandler
-
endCollection
public void endCollection()
Deprecated.Reports the closing element for the root, reports the end of the prefix mapping and the end a document.
- Specified by:
endCollection
in interfaceMarcHandler
-
-