public interface DmsReader
readDocuments() methodsDocuments 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.| 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... subscriber)
Registers an event subscriber.
Potential event subscriber consumer either Documents or DocumentReadInvalidEvent (in case of beeing
unable to read content from an export-archive). |
void readDocuments()
throws DmsExchangeException
Documents 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.DmsExchangeException - Encapsulating parent Exception for erroneous behaviourvoid readDocuments(Consumer<Document> consumer) throws DmsExchangeException
Document that is
read.DmsExchangeException - Encapsulating parent Exception for erroneous behaviourvoid registerSubscriber(Object... subscriber)
Documents 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.subscriber - An event subscriber that is registered to the (Guava) EventBusCopyright © 2015. All rights reserved.