|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.consumer.AbstractConsumer
public abstract class AbstractConsumer
Abstract implementation of the Consumer interface.
Custom implementations should rather inherit from this class
than implement the Consumer interface directly.
This increases the chance to keep custom consumers compatible
with future versions.
Created: 25.01.2008 22:37:42
Constructor Summary | |
---|---|
AbstractConsumer()
|
Method Summary | |
---|---|
void |
close()
When called, the implementor has to close and free all resources. |
void |
finishConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
void |
finishProductConsumption(java.lang.Object object)
|
void |
flush()
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far. |
void |
startConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
abstract void |
startProductConsumption(java.lang.Object object)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractConsumer()
Method Detail |
---|
public void startConsuming(ProductWrapper<?> wrapper)
Consumer
startConsuming
in interface Consumer
public void finishConsuming(ProductWrapper<?> wrapper)
Consumer
finishConsuming
in interface Consumer
public abstract void startProductConsumption(java.lang.Object object)
public void finishProductConsumption(java.lang.Object object)
public void flush()
Consumer
pageSize
attribute.
flush
in interface java.io.Flushable
flush
in interface Consumer
public void close()
Consumer
close
in interface java.io.Closeable
close
in interface Consumer
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |