|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.marc4j.helpers.RecordBuilder
Creates record objects from MarcHandler events and reports
events to the RecordHandler.
RecordHandler| Constructor Summary | |
RecordBuilder()
|
|
| Method Summary | |
void |
controlField(String tag,
char[] data)
Adds a control field to the record object. |
void |
endCollection()
Reports the end of the file. |
void |
endDataField(String tag)
Adds a data field to the record object. |
void |
endRecord()
Reports the end of a record and sets the record object. |
void |
setRecordHandler(RecordHandler recordHandler)
Registers the RecordHandler object. |
void |
startCollection()
Reports the start of the file. |
void |
startDataField(String tag,
char ind1,
char ind2)
Creates a new data field object. |
void |
startRecord(Leader leader)
Creates a new record object. |
void |
subfield(char identifier,
char[] data)
Adds a subfield to the data field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RecordBuilder()
| Method Detail |
public void setRecordHandler(RecordHandler recordHandler)
Registers the RecordHandler object.
recordHandler - the record handler objectpublic void startCollection()
Reports the start of the file.
startCollection in interface MarcHandlerpublic void startRecord(Leader leader)
Creates a new record object.
startRecord in interface MarcHandlerleader - the Leader object containing the record label
public void controlField(String tag,
char[] data)
Adds a control field to the record object.
controlField in interface MarcHandlertag - the tag namedata - the control field data
public void startDataField(String tag,
char ind1,
char ind2)
Creates a new data field object.
startDataField in interface MarcHandlertag - the tag nameind1 - the first indicator valueind2 - the second indicator value
public void subfield(char identifier,
char[] data)
Adds a subfield to the data field.
subfield in interface MarcHandleridentifier - the data element identifierdata - the data elementpublic void endDataField(String tag)
Adds a data field to the record object.
endDataField in interface MarcHandlertag - the tag namepublic void endRecord()
Reports the end of a record and sets the record object.
endRecord in interface MarcHandlerpublic void endCollection()
Reports the end of the file.
endCollection in interface MarcHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||