MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / FileBook

Method FileBook

src/org/albite/book/model/book/FileBook.java:28–56  ·  view source on GitHub ↗
(
            final String filename,
            final Archive archive,
            final TextParser parser,
            final boolean processHhtmlEntities)

Source from the content-addressed store, hash-verified

26 private final boolean processHtmlEntities;
27
28 public FileBook(
29 final String filename,
30 final Archive archive,
31 final TextParser parser,
32 final boolean processHhtmlEntities)
33 throws IOException, BookException {
34
35 this.bookURL = filename;
36 this.archive = archive;
37 this.parser = parser;
38 this.processHtmlEntities = processHhtmlEntities;
39
40 bookFile = (FileConnection) Connector.open(filename, Connector.READ);
41 language = null;
42
43 try {
44 /*
45 * load chapters info (filename + title)
46 */
47 chapters = loadChaptersDescriptor();
48 linkChapters();
49
50 loadUserFiles(filename);
51 } catch (IOException ioe) {
52 } catch (BookException be) {
53 close();
54 throw be;
55 }
56 }
57
58 final Chapter[] loadChaptersDescriptor()
59 throws BookException, IOException {

Callers

nothing calls this directly

Calls 5

closeMethod · 0.95
openMethod · 0.80
linkChaptersMethod · 0.80
loadUserFilesMethod · 0.80

Tested by

no test coverage detected