public class DefaultBookDoxia extends org.codehaus.plexus.logging.AbstractLogEnabled implements BookDoxia
| Constructor and Description |
|---|
DefaultBookDoxia() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAvailableBookRenderers()
Returns a Set of ids of the BookRenderers that are available in this BookDoxia.
|
BookModel |
loadBook(File bookDescriptor)
Load a BookModel from a descriptor file.
|
void |
renderBook(BookModel book,
String bookRendererId,
List<File> files,
File outputDirectory)
Creates a book from a BookModel using the
Locale.getDefault() and UTF-8 as default encoding. |
void |
renderBook(BookModel book,
String bookRendererId,
List<File> files,
File outputDirectory,
Locale locale,
String inputEncoding,
String outputEncoding)
Creates a book from a BookModel.
|
public BookModel loadBook(File bookDescriptor) throws BookDoxiaException
loadBook in interface BookDoxiabookDescriptor - the book descriptor file.BookDoxiaException - if the model cannot be loaded.public void renderBook(BookModel book, String bookRendererId, List<File> files, File outputDirectory) throws BookDoxiaException
Locale.getDefault() and UTF-8 as default encoding.renderBook in interface BookDoxiabook - the BookModel.bookRendererId - the id of the output format.files - a list of source files.outputDirectory - the output directory.BookDoxiaException - if the model cannot be loaded.BookDoxia.renderBook(BookModel, String, List, File, Locale, String, String),
Locale.getDefault()public void renderBook(BookModel book, String bookRendererId, List<File> files, File outputDirectory, Locale locale, String inputEncoding, String outputEncoding) throws BookDoxiaException
renderBook in interface BookDoxiabook - the BookModel.bookRendererId - the id of the output format.files - a list of source files.outputDirectory - the output directory.locale - the wanted locale.inputEncoding - the input encoding when processing files.outputEncoding - the output encoding when writing files in ouputDirectory.BookDoxiaException - if the model cannot be loaded.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.