psiegman / epublib

a java library for reading and writing epub files
http://www.siegmann.nl/epublib
1.06k stars 317 forks source link

domain.InputStreamResource class is missing #78

Open kalyanakannan opened 9 years ago

kalyanakannan commented 9 years ago

i have following error inputstreamresource is missing in domain class.any ideas

Odilio commented 9 years ago

Try use Resource // Add Chapter 1

book.addSection("Introduction", new Resource(Simple1.class.getResourceAsStream("/book1/chapter1.html"), "chapter1.html"));

// Add css file

book.getResources().add(new Resource(Simple1.class.getResourceAsStream("/book1/book1.css"), "book1.css"));