Class EpubWriter
- java.lang.Object
- 
- coza.opencollab.epub.creator.util.EpubWriter
 
- 
 public class EpubWriter extends Object The EpubWriter creates the EPUB zip bundle.- Author:
- OpenCollab
 
- 
- 
Constructor SummaryConstructors Constructor Description EpubWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContainerXML()StringgetContentFolder()OpfCreatorgetOpfCreator()StringgetOpfFileName()TocCreatorgetTocCreator()voidsetContainerXML(String containerXML)voidsetContentFolder(String contentFolder)voidsetOpfCreator(OpfCreator opfCreator)voidsetOpfFileName(String opfFileName)voidsetTocCreator(TocCreator tocCreator)voidwriteEpubToFile(EpubBook book, String fileName)Writes the EPUB book zip container and contents to a filevoidwriteEpubToStream(EpubBook book, OutputStream out)Writes the EPUB book zip container and contents to an OutputStream
 
- 
- 
- 
Method Detail- 
writeEpubToFilepublic void writeEpubToFile(EpubBook book, String fileName) throws IOException Writes the EPUB book zip container and contents to a file- Parameters:
- book- the EpubBook
- fileName- name of the file to be written
- Throws:
- IOException- if file could not be written
 
 - 
writeEpubToStreampublic void writeEpubToStream(EpubBook book, OutputStream out) throws IOException Writes the EPUB book zip container and contents to an OutputStream- Parameters:
- book- the EpubBook
- out- the OutputStream to write to
- Throws:
- IOException- if file could not be written
 
 - 
getContainerXMLpublic String getContainerXML() - Returns:
- the CONTAINER_XML
 
 - 
setContainerXMLpublic void setContainerXML(String containerXML) - Parameters:
- containerXML- the CONTAINER_XML to set
 
 - 
getContentFolderpublic String getContentFolder() - Returns:
- the CONTENT_FOLDER
 
 - 
setContentFolderpublic void setContentFolder(String contentFolder) - Parameters:
- contentFolder- the CONTENT_FOLDER to set
 
 - 
getOpfFileNamepublic String getOpfFileName() - Returns:
- the OPF_FILE_NAME
 
 - 
setOpfFileNamepublic void setOpfFileName(String opfFileName) - Parameters:
- opfFileName- the OPF_FILE_NAME to set
 
 - 
getOpfCreatorpublic OpfCreator getOpfCreator() - Returns:
- the opfCreator
 
 - 
setOpfCreatorpublic void setOpfCreator(OpfCreator opfCreator) - Parameters:
- opfCreator- the opfCreator to set
 
 - 
getTocCreatorpublic TocCreator getTocCreator() - Returns:
- the tocCreator
 
 - 
setTocCreatorpublic void setTocCreator(TocCreator tocCreator) - Parameters:
- tocCreator- the tocCreator to set
 
 
- 
 
-