Package writer2latex.epub
Class EPUBWriter
java.lang.Object
writer2latex.epub.EPUBWriter
- All Implemented Interfaces:
OutputFile
This class repackages an XHTML document into EPUB format.
Some filenames are hard wired in this implementation: The main directory is OEBPS and
the OPF and NCX files are book.opf and book.ncx respectively
-
Constructor Summary
ConstructorsConstructorDescriptionEPUBWriter
(ConverterResult xhtmlResult, String sFileName, XhtmlConfig config) -
Method Summary
Modifier and TypeMethodDescriptionReturns the file name of theOutputFile
.Get the MIME type of theOutputFile
.boolean
Test whether this document is part of the main document flow (master documents) or an auxiliary documentvoid
write
(OutputStream os) Writes theOutputFile
to anOutputStream
.
-
Constructor Details
-
EPUBWriter
-
-
Method Details
-
getFileName
Description copied from interface:OutputFile
Returns the file name of theOutputFile
. This includes the file extension and may also include a relative path, always using / as separator.- Specified by:
getFileName
in interfaceOutputFile
- Returns:
- the file name of this
OutputFile
-
getMIMEType
Description copied from interface:OutputFile
Get the MIME type of theOutputFile
.- Specified by:
getMIMEType
in interfaceOutputFile
- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()Description copied from interface:OutputFile
Test whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocument
in interfaceOutputFile
- Returns:
- true if this document is a master document
-
write
Description copied from interface:OutputFile
Writes theOutputFile
to anOutputStream
.- Specified by:
write
in interfaceOutputFile
- Parameters:
os
-OutputStream
to which the content should be written- Throws:
IOException
- if any I/O error occurs
-