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
IOException
public Book readEpub(ZipInputStream in) throws IOException
IOException
public Book readEpub(ZipFile zipfile) throws IOException
IOException
public 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 epubIOException
public Book readEpubLazy(ZipFile zipFile, String encoding) throws IOException
fileName
- the file to loadencoding
- the encoding for XHTML filesIOException
public Book readEpub(ZipInputStream in, String encoding) throws IOException
IOException
public Book readEpub(ZipFile in, String encoding) throws IOException
IOException
public 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 lazilyIOException
public Book readEpub(Resources resources) throws IOException
IOException
public Book readEpub(Resources resources, Book result) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.