public class NavDocument extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAV_HREF |
static String |
NAMESPACE_EPUB |
static String |
NAMESPACE_NCX |
static String |
NCX_ITEM_ID |
static String |
PREFIX_DTB |
static String |
PREFIX_NCX |
| Constructor and Description |
|---|
NavDocument() |
| Modifier and Type | Method and Description |
|---|---|
static Resource |
createNavResource(Book book) |
static Resource |
createNavResource(List<Identifier> identifiers,
String title,
List<CreatorContributor> authors,
TableOfContents tableOfContents) |
static Resource |
read(Book book,
EpubReader epubReader) |
static void |
write(Epub2Writer 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<CreatorContributor> authors,
TableOfContents tableOfContents) |
public static final String NAMESPACE_NCX
public static final String NAMESPACE_EPUB
public static final String PREFIX_NCX
public static final String NCX_ITEM_ID
public static final String DEFAULT_NAV_HREF
public static final String PREFIX_DTB
public static Resource read(Book book, EpubReader epubReader)
public static void write(Epub2Writer epubWriter, Book book, ZipOutputStream resultStream) throws IOException
IOExceptionpublic static void write(org.xmlpull.v1.XmlSerializer xmlSerializer,
Book book)
throws IllegalArgumentException,
IllegalStateException,
IOException
xmlSerializer - the serializer usedbook - the book to serializeFactoryConfigurationErrorIOExceptionIllegalStateExceptionIllegalArgumentExceptionpublic static Resource createNavResource(Book book) throws IllegalArgumentException, IllegalStateException, IOException
public static Resource createNavResource(List<Identifier> identifiers, String title, List<CreatorContributor> authors, TableOfContents tableOfContents) throws IllegalArgumentException, IllegalStateException, IOException
public static void write(org.xmlpull.v1.XmlSerializer serializer,
List<Identifier> identifiers,
String title,
List<CreatorContributor> authors,
TableOfContents tableOfContents)
throws IllegalArgumentException,
IllegalStateException,
IOException
Copyright © 2009–2017. All rights reserved.