Class OpfCreatorDefault
- java.lang.Object
-
- coza.opencollab.epub.creator.impl.OpfCreatorDefault
-
- All Implemented Interfaces:
OpfCreator
public class OpfCreatorDefault extends Object implements OpfCreator
Default implementation of the OpfCreator. This follows EPUB3 standards to create the OPF file content.- Author:
- OpenCollab
-
-
Constructor Summary
Constructors Constructor Description OpfCreatorDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createOpfString(EpubBook book)
Creates the OPF file text from the EpubBook dataString
getOpfXML()
The base XML used for the OPF file.void
setOpfXML(String opfXML)
The base XML used for the OPF file.
-
-
-
Method Detail
-
createOpfString
public String createOpfString(EpubBook book)
Creates the OPF file text from the EpubBook data- Specified by:
createOpfString
in interfaceOpfCreator
- Parameters:
book
- the ePub book to generate the OPF for- Returns:
- the generated OPF markup
-
getOpfXML
public String getOpfXML()
The base XML used for the OPF file.- Returns:
- the OPF XML text
-
setOpfXML
public void setOpfXML(String opfXML)
The base XML used for the OPF file. This is optional as there is a EPUB3 standard default but it can be overridden.- Parameters:
opfXML
- the OPF XML to set
-
-