Method | Description | |
---|---|---|
read ( |
Method | Description | |
---|---|---|
findCoverHrefs ( System.Xml.Linq.XElement packageDocument ) : List |
package
|
|
findTableOfContentsResource ( System.Xml.Linq.XElement spineElement, |
The spine tag should contain a 'toc' attribute with as value the resource id of the table of contents resource. Here we try several ways of finding this table of contents resource. We try the given attribute value, some often-used ones and finally look through all resources for the first resource with the table of contents mimetype.
|
|
fixHrefs ( String packageHref, |
Strips off the package prefixes up to the href of the packageHref. Example: If the packageHref is "OEBPS/content.opf" then a resource href like "OEBPS/foo/bar. html" will be turned into "foo/bar.html"
|
|
generateSpineFromResources ( |
Creates a spine out of all resources in the resources. The generated spine consists of all XHTML pages in order of their href.
|
|
readCover ( System.Xml.Linq.XElement packageDocument, |
Finds the cover resource in the packageDocument and adds it to the book if found. Keeps the cover resource in the resources map
|
|
readGuide ( System.Xml.Linq.XElement packageDocument, |
Reads the book's guide. Here some more attempts are made at finding the cover page.
|
|
readManifest ( System.Xml.Linq.XElement packageDocument, String packageHref, |
Reads the manifest containing the resource ids, hrefs and mediatypes.
|
|
readSpine ( System.Xml.Linq.XElement packageDocument, |
Reads the document's spine, containing all sections in reading order.
|
public static read ( |
||
packageResource | ||
epubReader | ||
book | ||
resources | ||
return | void |