MarcHandler (marc4j)
Keywords: org.marc4j.MarcHandler interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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).

Method Detail

### 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 name
    `data` - 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 name
    `ind1` - the first indicator value
    `ind2` - 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 identifier
    `data` - the data element

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2004 Bas Peters. All Rights Reserved.