public abstract class AbstractEpubWriter extends Object implements EpubWriter
| Modifier and Type | Field and Description |
|---|---|
protected BookProcessor |
bookProcessor |
protected static String |
EMPTY_NAMESPACE_PREFIX |
| Constructor and Description |
|---|
AbstractEpubWriter() |
AbstractEpubWriter(BookProcessor bookProcessor) |
| Modifier and Type | Method and Description |
|---|---|
BookProcessor |
getBookProcessor() |
protected void |
initTOCResource(Book book,
Resource tocResource) |
protected Book |
processBook(Book book) |
void |
setBookProcessor(BookProcessor bookProcessor) |
protected void |
writeContainer(ZipOutputStream resultStream)
Writes the META-INF/container.xml file.
|
protected void |
writeMimeType(ZipOutputStream resultStream)
Stores the mimetype as an uncompressed file in the ZipOutputStream.
|
protected void |
writeResource(Resource resource,
ZipOutputStream resultStream)
Writes the resource to the resultStream.
|
protected void |
writeResources(Book book,
ZipOutputStream resultStream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteprotected static final String EMPTY_NAMESPACE_PREFIX
protected BookProcessor bookProcessor
public AbstractEpubWriter()
public AbstractEpubWriter(BookProcessor bookProcessor)
protected void writeContainer(ZipOutputStream resultStream) throws IOException
resultStream - IOExceptionprotected void writeResources(Book book, ZipOutputStream resultStream) throws IOException
IOExceptionprotected void writeResource(Resource resource, ZipOutputStream resultStream) throws IOException
resource - resultStream - IOExceptionprotected void writeMimeType(ZipOutputStream resultStream) throws IOException
resultStream - IOExceptionpublic BookProcessor getBookProcessor()
getBookProcessor in interface EpubWriterpublic void setBookProcessor(BookProcessor bookProcessor)
setBookProcessor in interface EpubWriterCopyright © 2009–2017. All rights reserved.