public class DefaultDmsReader extends DefaultExchange implements DmsReader
| Constructor and Description |
|---|
DefaultDmsReader(InputStream inputstream) |
| Modifier and Type | Method and Description |
|---|---|
void |
readDocuments()
Starts reading the provided export-archive and fires the appropiate events.
Potential event subscriber consumer either Documents or DocumentReadInvalidEvent (in case of beeing
unable to read content from an export-archive). |
void |
readDocuments(Consumer<Document> consumer)
Starts reading the provided export-archive and calls the consumer for every successful
Document that is
read. |
void |
registerSubscriber(Object... listeners)
Registers an event subscriber.
Potential event subscriber consumer either Documents or DocumentReadInvalidEvent (in case of beeing
unable to read content from an export-archive). |
getVerjsonDocument, postEvent, registerListener, unregisterListenerpublic DefaultDmsReader(InputStream inputstream)
public void registerSubscriber(Object... listeners)
DmsReaderDocuments or DocumentReadInvalidEvent (in case of beeing
unable to read content from an export-archive). Take a look at the WrappingDocumentConsumer for an example how to
implement an event subscriber.registerSubscriber in interface DmsReaderlisteners - An event subscriber that is registered to the (Guava) EventBuspublic void readDocuments(Consumer<Document> consumer) throws DmsExchangeException
DmsReaderDocument that is
read.readDocuments in interface DmsReaderDmsExchangeException - Encapsulating parent Exception for erroneous behaviourpublic void readDocuments()
throws DmsExchangeException
DmsReaderDocuments or DocumentReadInvalidEvent (in case of beeing
unable to read content from an export-archive). Take a look at the WrappingDocumentConsumer for an example how to
implement an event subscriber.readDocuments in interface DmsReaderDmsExchangeException - Encapsulating parent Exception for erroneous behaviourCopyright © 2015. All rights reserved.