Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add utility method BookProcessorPipeline

  • Loading branch information...
commit 0f664d0f24ea34c5583daf339961fcba3a1d351f 1 parent 787d1f6
@psiegman authored
View
9 epublib-core/src/main/java/nl/siegmann/epublib/epub/BookProcessorPipeline.java
@@ -1,6 +1,7 @@
package nl.siegmann.epublib.epub;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.List;
import nl.siegmann.epublib.domain.Book;
@@ -52,6 +53,14 @@ public void addBookProcessor(BookProcessor bookProcessor) {
}
this.bookProcessors.add(bookProcessor);
}
+
+ public void addBookProcessors(Collection<BookProcessor> bookProcessors) {
+ if (this.bookProcessors == null) {
+ this.bookProcessors = new ArrayList<BookProcessor>();
+ }
+ this.bookProcessors.addAll(bookProcessors);
+ }
+
public List<BookProcessor> getBookProcessors() {
return bookProcessors;
Please sign in to comment.
Something went wrong with that request. Please try again.