Package org.marc4j
Interface MarcHandler
-
- All Known Implementing Classes:
DefaultHandler
,MarcWriter
,MarcXmlFilter
,MarcXmlReader
,RecordBuilder
,TaggedWriter
public interface MarcHandler
Defines Java callbacks to handle a collection of MARC records.
- Author:
- Bas Peters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
controlField(String tag, char[] data, Long id)
Receives notification of a control field.void
endCollection()
Receives notification at the end of the collection.void
endDataField(String tag)
Receives notification at the end of each data fieldvoid
endRecord()
Receives notification at the end of each record.void
startCollection()
Receives notification at the start of the collection.void
startDataField(String tag, char ind1, char ind2, Long id)
Receives notification at the start of each data field.void
startRecord(Leader leader)
Receives notification at the start of each record.void
subfield(char code, char[] data, String linkCode)
Receives notification of a data element (subfield).
-
-
-
Method Detail
-
startCollection
void startCollection()
Receives notification at the start of the collection.
-
endCollection
void endCollection()
Receives notification at the end of the collection.
-
startRecord
void startRecord(Leader leader)
Receives notification at the start of each record.
- Parameters:
leader
- theLeader
object containing the record label
-
endRecord
void endRecord()
Receives notification at the end of each record.
-
controlField
void controlField(String tag, char[] data, Long id)
Receives notification of a control field.
- Parameters:
tag
- the tag namedata
- the control field dataid
- the field id if exists.
-
startDataField
void startDataField(String tag, char ind1, char ind2, Long id)
Receives notification at the start of each data field.
- Parameters:
tag
- the tag nameind1
- the first indicator valueind2
- the second indicator valueid
- the field id if exists.
-
endDataField
void endDataField(String tag)
Receives notification at the end of each data field
- Parameters:
tag
- the tag name
-
subfield
void subfield(char code, char[] data, String linkCode)
Receives notification of a data element (subfield).
- Parameters:
code
- the data element identifierdata
- the data elementlinkCode
- a code if the subfield has a link with another Record
-
-