title: How to display all pages and all chapters using nl.siegmann.epublib
body: <p>This is what I tried to perform the task if anyone can help out it would be most appreciated. So in this code it will display just the cover page. I read <a href="http://www.siegmann.nl/static/epublib/apidocs/" rel="noreferrer">http://www.siegmann.nl/static/epublib/apidocs/</a> that you could use <code>getSpine()</code> to get everything but it only displayed one thing on my case which is cover page.</p>
  
  <pre><code>webView = (WebView)findViewById(R.id.webView);
  webView.getSettings().setJavaScriptEnabled(true);
  AssetManager am = getAssets();
  try {
      InputStream epubInputStream = am.open(bookName);
      book = (new EpubReader()).readEpub(epubInputStream);
  } catch (IOException e) {
      Log.e("epublib", e.getMessage());
  }
  
  Spine spine = book.getSpine(); 
  for (SpineReference bookSection : spine.getSpineReferences()) {
      Resource res = bookSection.getResource();
  
      try {
          InputStream is = res.getInputStream();
          StringBuffer string = new StringBuffer();
          BufferedReader reader = new BufferedReader(new InputStreamReader(is));
  
          try {
              while ((line = reader.readLine()) != null) {
                  linez =   string.append(line + "\n").toString();
              }
          } catch (IOException e) {e.printStackTrace();}
  
          //do something with stream
      } catch (IOException e) {
          e.printStackTrace();
      }
  
  }
  webView.loadData(linez, "text/html", "utf-8");
  </code></pre>