|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.marc4j.helpers.DefaultHandler
Provides default implementations for the callbacks
in the MarcHandler and ErrorHandler
interface.
Application writers can extend this class when they need to implement only part of an interface.
MarcHandler,
ErrorHandler| Constructor Summary | |
DefaultHandler()
|
|
| 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 |
error(MarcReaderException exception)
Receive notification of an error. |
void |
fatalError(MarcReaderException exception)
Receive notification of a fatal error. |
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 identifier,
char[] data)
Receives notification of a data element (subfield). |
void |
warning(MarcReaderException exception)
Receive notification of a warning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultHandler()
| Method Detail |
public void startCollection()
MarcHandlerReceives notification at the start of the collection.
startCollection in interface MarcHandlerpublic void endCollection()
MarcHandlerReceives notification at the end of the collection.
endCollection in interface MarcHandlerpublic void startRecord(Leader leader)
MarcHandlerReceives notification at the start of each record.
startRecord in interface MarcHandlerleader - the Leader object containing the record labelpublic void endRecord()
MarcHandlerReceives notification at the end of each record.
endRecord in interface MarcHandler
public void controlField(String tag,
char[] data)
MarcHandlerReceives notification of a control field.
controlField in interface MarcHandlertag - the tag namedata - the control field data
public void startDataField(String tag,
char ind1,
char ind2)
MarcHandlerReceives notification at the start of each data field.
startDataField in interface MarcHandlertag - the tag nameind1 - the first indicator valueind2 - the second indicator valuepublic void endDataField(String tag)
MarcHandlerReceives notification at the end of each data field
endDataField in interface MarcHandlertag - the tag name
public void subfield(char identifier,
char[] data)
MarcHandlerReceives notification of a data element (subfield).
subfield in interface MarcHandleridentifier - the data element identifierdata - the data elementpublic void warning(MarcReaderException exception)
ErrorHandlerReceive notification of a warning.
warning in interface ErrorHandlerpublic void error(MarcReaderException exception)
ErrorHandlerReceive notification of an error.
error in interface ErrorHandlerpublic void fatalError(MarcReaderException exception)
ErrorHandlerReceive notification of a fatal error.
fatalError in interface ErrorHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||