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.
- Version:
- $Revision: 1.4 $
- Author:
- Bas Peters
|
Method Summary |
void |
controlField(String tag,
char[] data)
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 field |
void |
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)
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)
Receives notification of a data element (subfield). |
startCollection
public void startCollection()
Receives notification at the start of the collection.
endCollection
public void endCollection()
Receives notification at the end of the collection.
startRecord
public void startRecord(Leader leader)
Receives notification at the start of each record.
- Parameters:
leader - the Leader object containing the record label
endRecord
public void endRecord()
Receives notification at the end of each record.
controlField
public void controlField(String tag,
char[] data)
Receives notification of a control field.
- Parameters:
tag - the tag namedata - the control field data
startDataField
public void startDataField(String tag,
char ind1,
char ind2)
Receives notification at the start of each data field.
- Parameters:
tag - the tag nameind1 - the first indicator valueind2 - the second indicator value
endDataField
public void endDataField(String tag)
Receives notification at the end of each data field
- Parameters:
tag - the tag name
subfield
public void subfield(char code,
char[] data)
Receives notification of a data element (subfield).
- Parameters:
code - the data element identifierdata - the data element
Copyright © 2001-2004 Bas Peters. All Rights Reserved.