org.databene.model.consumer
Class AbstractConsumer<E>

java.lang.Object
  extended by org.databene.model.consumer.AbstractConsumer<E>
All Implemented Interfaces:
java.io.Closeable, Consumer<E>
Direct Known Subclasses:
AddingConsumer, ConsumerChain, DbUnitEntityExporter, FormattingConsumer, JavaInvoker, ListConsumer, LoggingConsumer, StorageSystemConsumer, XMLEntityExporter

public abstract class AbstractConsumer<E>
extends java.lang.Object
implements Consumer<E>

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

Since:
0.4.0
Author:
Volker Bergmann

Constructor Summary
AbstractConsumer()
           
 
Method Summary
 void close()
           
 void finishConsuming(E object)
           
 void flush()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.model.consumer.Consumer
startConsuming
 

Constructor Detail

AbstractConsumer

public AbstractConsumer()
Method Detail

finishConsuming

public void finishConsuming(E object)
Specified by:
finishConsuming in interface Consumer<E>

flush

public void flush()
Specified by:
flush in interface Consumer<E>

close

public void close()
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface Consumer<E>


Copyright © 2011. All Rights Reserved.