Example of programmatical creation not working

142 views
Skip to first unread message

LitKritter

unread,
Sep 9, 2011, 4:25:55 AM9/9/11
to epublib
Hi tehre,

the example provided under http://www.siegmann.nl/epublib/example-programs/epub-sample-simple1
does not work with latest.jar and also not with recent sources. These
two import statements acn't be resolved:

import nl.siegmann.epublib.domain.InputStreamResource;
import nl.siegmann.epublib.domain.Section;

Greetings!
LitKritter

LitKritter

unread,
Sep 9, 2011, 4:32:18 AM9/9/11
to epublib
These two lines need to be replaced by:

import nl.siegmann.epublib.domain.Resource;
import nl.siegmann.epublib.domain.TOCReference;

Section is now TOCReference. All addResourceAs(Sub)Section() are now
addSection().

Just want to mention it :)

Paul Siegmann

unread,
Sep 14, 2011, 4:41:05 PM9/14/11
to epublib
Hi LitKritter,

I've updated the page.

Thanks !

--
paul
Reply all
Reply to author
Forward
0 new messages