(final Element kid, final String elementName)
| 341 | } |
| 342 | |
| 343 | private int readIntFromXML(final Element kid, final String elementName) { |
| 344 | int number = 0; |
| 345 | |
| 346 | try { |
| 347 | number = Integer.parseInt( |
| 348 | kid.getAttributeValue( |
| 349 | KXmlParser.NO_NAMESPACE, elementName)); |
| 350 | } catch (NumberFormatException nfe) {} |
| 351 | |
| 352 | return number; |
| 353 | } |
| 354 | |
| 355 | public final void saveBookSettings() { |
| 356 | if (chapters != null && bookSettingsFile != null) { |
no test coverage detected