Package com.attribyte.parser.epub
Class EpubParser
java.lang.Object
com.attribyte.parser.epub.EpubParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn Epub format document.static final classA manifest item in the spine.static final classThe document metadata.static final classA document spine. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
supportedMimeTypes
-
-
Constructor Details
-
EpubParser
public EpubParser()
-
-
Method Details
-
main
- Throws:
Exception
-
parse
public static List<EpubParser.EpubDocument> parse(File epubFile, File targetDir, Consumer<File> fileConsumer, boolean writeCombinedFile) throws IOException Parse an epub file.- Parameters:
epubFile- The file.targetDir- The target output directory.fileConsumer- If non-null, extracted files are reported to this function.writeCombinedFile- If specified, a new file is written to the directory containing the first linear file that combines all linear documents.- Returns:
- The list of documents (each has metadata and a spine).
- Throws:
IOException- on error.
-