public class MarcGenerator extends java.lang.Object implements ChunkListener<byte[],BytesReference>
Constructor and Description |
---|
MarcGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
chunk(Chunk<byte[],BytesReference> chunk)
A chunk has arrived.
|
MarcGenerator |
setCharset(java.nio.charset.Charset charset) |
MarcGenerator |
setFatalErrors(boolean fatalerrors) |
MarcGenerator |
setFormat(java.lang.String format) |
MarcGenerator |
setMarcFieldTransformers(MarcFieldTransformers marcFieldTransformers) |
MarcGenerator |
setMarcListener(MarcListener marcListener) |
MarcGenerator |
setMarcTransformer(MarcTransformer marcTransformer) |
MarcGenerator |
setMarcValueTransformers(MarcValueTransformers marcValueTransformers) |
MarcGenerator |
setRecordLabelFixer(RecordLabelFixer recordLabelFixer) |
MarcGenerator |
setType(java.lang.String type) |
public MarcGenerator setFormat(java.lang.String format)
public MarcGenerator setType(java.lang.String type)
public MarcGenerator setCharset(java.nio.charset.Charset charset)
public MarcGenerator setMarcListener(MarcListener marcListener)
public MarcGenerator setRecordLabelFixer(RecordLabelFixer recordLabelFixer)
public MarcGenerator setMarcFieldTransformers(MarcFieldTransformers marcFieldTransformers)
public MarcGenerator setMarcValueTransformers(MarcValueTransformers marcValueTransformers)
public MarcGenerator setMarcTransformer(MarcTransformer marcTransformer)
public MarcGenerator setFatalErrors(boolean fatalerrors)
public void chunk(Chunk<byte[],BytesReference> chunk) throws java.io.IOException
ChunkListener
chunk
in interface ChunkListener<byte[],BytesReference>
chunk
- the chunkjava.io.IOException
- if chunk processing fails