BookProcessor.java 400 B

1234567891011121314151617181920
  1. package me.ag2s.epublib.epub;
  2. import me.ag2s.epublib.domain.EpubBook;
  3. /**
  4. * Post-processes a book.
  5. *
  6. * Can be used to clean up a book after reading or before writing.
  7. *
  8. * @author paul
  9. */
  10. public interface BookProcessor {
  11. /**
  12. * A BookProcessor that returns the input book unchanged.
  13. */
  14. BookProcessor IDENTITY_BOOKPROCESSOR = book -> book;
  15. EpubBook processBook(EpubBook book);
  16. }