public class EpubReader extends Object
| Constructor and Description |
|---|
EpubReader() |
| Modifier and Type | Method and Description |
|---|---|
Book |
readEpub(InputStream in) |
Book |
readEpub(InputStream in,
String encoding)
Read epub from inputstream
|
Book |
readEpub(Resources resources) |
Book |
readEpub(Resources resources,
Book result) |
Book |
readEpub(ZipFile zipfile) |
Book |
readEpub(ZipFile in,
String encoding) |
Book |
readEpub(ZipInputStream in) |
Book |
readEpub(ZipInputStream in,
String encoding) |
Book |
readEpubLazy(ZipFile zipFile,
String encoding)
Reads this EPUB without loading any resources into memory.
|
Book |
readEpubLazy(ZipFile zipFile,
String encoding,
List<MediaType> lazyLoadedTypes)
Reads this EPUB without loading all resources into memory.
|
public Book readEpub(InputStream in) throws IOException
IOExceptionpublic Book readEpub(ZipInputStream in) throws IOException
IOExceptionpublic Book readEpub(ZipFile zipfile) throws IOException
IOExceptionpublic Book readEpub(InputStream in, String encoding) throws IOException
in - the inputstream from which to read the epubencoding - the encoding to use for the html files within the epubIOExceptionpublic Book readEpubLazy(ZipFile zipFile, String encoding) throws IOException
fileName - the file to loadencoding - the encoding for XHTML filesIOExceptionpublic Book readEpub(ZipInputStream in, String encoding) throws IOException
IOExceptionpublic Book readEpub(ZipFile in, String encoding) throws IOException
IOExceptionpublic Book readEpubLazy(ZipFile zipFile, String encoding, List<MediaType> lazyLoadedTypes) throws IOException
fileName - the file to loadencoding - the encoding for XHTML fileslazyLoadedTypes - a list of the MediaType to load lazilyIOExceptionpublic Book readEpub(Resources resources) throws IOException
IOExceptionpublic Book readEpub(Resources resources, Book result) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.