Package org.marc4j

Interface MarcHandler

    • 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 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, 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 - the Leader 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 name
        data - the control field data
        id - 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 name
        ind1 - the first indicator value
        ind2 - the second indicator value
        id - 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 identifier
        data - the data element
        linkCode - a code if the subfield has a link with another Record