org.apache.maven.doxia.book.services.io
Class DefaultBookIo
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.doxia.book.services.io.DefaultBookIo
- All Implemented Interfaces:
- BookIo, org.codehaus.plexus.logging.LogEnabled
public class DefaultBookIo
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements BookIo
DefaultBookIo class.
- Version:
- $Id: DefaultBookIo.java 1090706 2011-04-09 23:15:28Z hboutemy $
- Author:
- Trygve Laugstøl
- Plexus component
Fields inherited from interface org.apache.maven.doxia.book.services.io.BookIo |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBookIo
public DefaultBookIo()
readBook
public BookModel readBook(File bookDescriptor)
throws BookDoxiaException
- Read a BookModel from a descriptor file.
- Specified by:
readBook
in interface BookIo
- Parameters:
bookDescriptor
- the book descriptor file.
- Returns:
- BookModel
- Throws:
BookDoxiaException
- if the model cannot be read.
loadFiles
public void loadFiles(BookContext context,
List<File> files)
- Loads files in a given context.
- Specified by:
loadFiles
in interface BookIo
- Parameters:
context
- the BookContext.files
- a list of files.
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.