|
|||||||||||
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 MarcHandler
public void startRecord(Leader leader)
Creates a new record object.
startRecord
in interface MarcHandler
leader
- the Leader
object containing the record labelpublic void controlField(String tag, char[] data)
Adds a control field to the record object.
controlField
in interface MarcHandler
tag
- the tag namedata
- the control field datapublic void startDataField(String tag, char ind1, char ind2)
Creates a new data field object.
startDataField
in interface MarcHandler
tag
- the tag nameind1
- the first indicator valueind2
- the second indicator valuepublic void subfield(char identifier, char[] data)
Adds a subfield to the data field.
subfield
in interface MarcHandler
identifier
- the data element identifierdata
- the data elementpublic void endDataField(String tag)
Adds a data field to the record object.
endDataField
in interface MarcHandler
tag
- the tag namepublic void endRecord()
Reports the end of a record and sets the record object.
endRecord
in interface MarcHandler
public 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 |