Which calls returns the timeout exception? Can you post the full stack trace?<div><br></div><div> - Samuel<br><br><div class="gmail_quote">On Fri, Sep 10, 2010 at 2:49 PM, Matthias Wegner <span dir="ltr">&lt;<a href="mailto:mic.mat.wegner@web.de">mic.mat.wegner@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="DE" link="blue" vlink="purple">

<div>

<p class="MsoNormal">Hi All,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span lang="EN-US">my Name is Matthias Wegner from Germany,
Freiburg. I develop since 13 years java and want to use the jsword api for an
own application. For that I need some bibles and a search for the bible text in
dependency of the “key”. I try since three days to get the given API
Example working. I think I understood in a raw concept what the different Installer-Classes
and the WebRessource-Class are doing, but I don’t get it what is going
wrong.</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal"><span lang="EN-US">i tried to get a working APIExample. I use the
newest Eclipse, load all Librarys from Maven and have a working set. My problem
is, that I always get a timeout (I moved, so I only have UMTS at the moment).
When I put the timeout in WebResource-Class to 5000ms the Application below
starts, but I always get in the Console</span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">ESV</span></b><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></b></p>


<p class="MsoNormal" style="text-autospace:none"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">Book contains key: false</span></b><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></b></p>


<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">Text is &#39;&#39;</span></b></p>

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></b></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black">I don‘t get what i am doing wrong. Is the problem a
connection problem? When I put manually the esv.conf in the mods.d-directory,
then the book is removed and deleted (that means only the config-file). Is that
the way it goes? I downloaded the esv and put it relative to mods.d to “../modules”.
In the full desktop application this works fine, so I don’t understood
whats wrong.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black">I really appreciate some help or hints. Can you give me some
tryouts, so I can find the “real” problem?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black">Warm Regards,</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black">Matthias</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;color:black"> </span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;color:black">Example Code:</span><span lang="EN-US"></span></p>

<p class="MsoNormal"><span lang="EN-US"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">   
public</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">static</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">void</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
main(String[] args) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
InstallManager imanager = </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
InstallManager();        </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
Installer installer = imanager.getInstaller(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;CrossWire&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">try</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">   
        installer.reloadBookList();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">catch</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (InstallException e) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
e.printStackTrace();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
<u>List</u> availableBooks = installer.getBooks(</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
MyBookFilter(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;ESV&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)); </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
Book book = (Book) availableBooks.get(0);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (book != </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">null</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">try</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">               
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (Books.<i>installed</i>().getBook(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;ESV&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">) != </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">null</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">               
  System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Book
&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> + book.getInitials() + </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot; is removed&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                   
Books.<i>installed</i>().removeBook(book);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                   
System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Book
&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> + book.getInitials() + </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot; is deleted&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                   
book.getDriver().delete(book);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">               
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">catch</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (BookException e1)</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
{</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">               
e1.printStackTrace();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(book.getInitials());</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">try</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
installer.install(book);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">if</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (Books.<i>installed</i>().getBook(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;ESV&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">) != </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">null</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
      System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Book
is NOT empty&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
}        </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">catch</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (InstallException e) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
e.printStackTrace();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">try</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  Key
key = book.getKey(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Gen 1:1&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Book
contains key: &quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">+ book.contains(key));</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  BookData
data = </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">new</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> BookData(book, key);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">             
String text = OSISUtil.<i>getCanonicalText</i>(data.getOsisFragment());</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">             
System.</span><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">out</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Text is
&#39;&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> + text+</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;&#39;&quot;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            }
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">catch</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (NoSuchKeyException e) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  e.printStackTrace();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            }
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">catch</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (BookException e) {</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  e.printStackTrace();</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            }</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
System.<i>exit</i>(1);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      }</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">      </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">static</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">class</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
MyBookFilter </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">implements</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> BookFilter</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">   
{</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">public</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> MyBookFilter(String bookName)</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
{</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">name</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> = bookName;</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
}</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">public</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">boolean</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
test(Book bk)</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
{</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">           
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">return</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> bk.getInitials().equals(</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">name</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">}</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       
</span><b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055">private</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> String </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0">name</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></p>


<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">    }</span><span lang="EN-US"></span></p>

</div>

</div>


<br>_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
<br></blockquote></div><br></div>