@Test public void testReadEpub_opf_ncx_docs() throws IOException { Book book = new Book(); book.setCoverImage(new Resource(this.getClass().getResourceAsStream( "/book1/cover.png"), "cover.png")); book.addSection("Introduction", new Resource(this.getClass() .getResourceAsStream("/book1/chapter1.html"), "chapter1.html")); book.generateSpineFromTableOfContents(); ByteArrayOutputStream out = new ByteArrayOutputStream(); (new EpubWriter()).write(book, out); byte[] epubData = out.toByteArray(); Book readBook = new EpubReader().readEpub(new ByteArrayInputStream( epubData)); assertNotNull(readBook.getCoverPage()); assertEquals(1, readBook.getSpine().size()); assertEquals(1, readBook.getTableOfContents().size()); assertNotNull(readBook.getOpfResource()); assertNotNull(readBook.getNcxResource()); assertEquals(MediatypeService.NCX, readBook.getNcxResource() .getMediaType()); }
public Book readEpub(InputStream in) throws IOException { return readEpub(in, Constants.CHARACTER_ENCODING); }
EpubReader { public Book readEpub(InputStream in) throws IOException { return readEpub(in, Constants.CHARACTER_ENCODING); } }
EpubReader { public Book readEpub(InputStream in) throws IOException { return readEpub(in, Constants.CHARACTER_ENCODING); }  }
EpubReader { public Book readEpub(InputStream in) throws IOException { return readEpub(in, Constants.CHARACTER_ENCODING); }  Book readEpub(InputStream in); Book readEpub(ZipInputStream in); Book readEpub(ZipFile zipfile); Book readEpub(InputStream in, String encoding); Book readEpubLazy(ZipFile zipFile, String encoding ); Book readEpub(ZipInputStream in, String encoding); Book readEpub(ZipFile in, String encoding); Book readEpubLazy(ZipFile zipFile, String encoding, List<MediaType> lazyLoadedTypes ); Book readEpub(Resources resources); Book readEpub(Resources resources, Book result); }
EpubReader { public Book readEpub(InputStream in) throws IOException { return readEpub(in, Constants.CHARACTER_ENCODING); }  Book readEpub(InputStream in); Book readEpub(ZipInputStream in); Book readEpub(ZipFile zipfile); Book readEpub(InputStream in, String encoding); Book readEpubLazy(ZipFile zipFile, String encoding ); Book readEpub(ZipInputStream in, String encoding); Book readEpub(ZipFile in, String encoding); Book readEpubLazy(ZipFile zipFile, String encoding, List<MediaType> lazyLoadedTypes ); Book readEpub(Resources resources); Book readEpub(Resources resources, Book result);  }