public class NCXDocument extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NCX_HREF |
static String |
NAMESPACE_NCX |
static String |
NCX_ITEM_ID |
static String |
PREFIX_DTB |
static String |
PREFIX_NCX |
Constructor and Description |
---|
NCXDocument() |
Modifier and Type | Method and Description |
---|---|
static Resource |
createNCXResource(Book book) |
static Resource |
createNCXResource(List<Identifier> identifiers,
String title,
List<Author> authors,
TableOfContents tableOfContents) |
static Resource |
read(Book book,
EpubReader epubReader) |
static void |
write(EpubWriter epubWriter,
Book book,
ZipOutputStream resultStream) |
static void |
write(org.xmlpull.v1.XmlSerializer xmlSerializer,
Book book)
Generates a resource containing an xml document containing the table of contents of the book in ncx format.
|
static void |
write(org.xmlpull.v1.XmlSerializer serializer,
List<Identifier> identifiers,
String title,
List<Author> authors,
TableOfContents tableOfContents) |
public static final String NAMESPACE_NCX
public static final String PREFIX_NCX
public static final String NCX_ITEM_ID
public static final String DEFAULT_NCX_HREF
public static final String PREFIX_DTB
public static Resource read(Book book, EpubReader epubReader)
public static void write(EpubWriter epubWriter, Book book, ZipOutputStream resultStream) throws IOException
IOException
public static void write(org.xmlpull.v1.XmlSerializer xmlSerializer, Book book) throws IllegalArgumentException, IllegalStateException, IOException
xmlSerializer
- the serializer usedbook
- the book to serializeFactoryConfigurationError
IOException
IllegalStateException
IllegalArgumentException
public static Resource createNCXResource(Book book) throws IllegalArgumentException, IllegalStateException, IOException
public static Resource createNCXResource(List<Identifier> identifiers, String title, List<Author> authors, TableOfContents tableOfContents) throws IllegalArgumentException, IllegalStateException, IOException
public static void write(org.xmlpull.v1.XmlSerializer serializer, List<Identifier> identifiers, String title, List<Author> authors, TableOfContents tableOfContents) throws IllegalArgumentException, IllegalStateException, IOException
Copyright © 2009–2017. All rights reserved.