(
final String filename,
final Archive archive,
final TextParser parser,
final boolean processHhtmlEntities)
| 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 { |
nothing calls this directly
no test coverage detected