|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.examples.APIExamples
public class APIExamples
All the methods in this class highlight some are of the API and how to use it.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static String |
BIBLE_NAME
The name of a Bible to find |
Constructor Summary | |
---|---|
APIExamples()
|
Method Summary | |
---|---|
void |
export()
An example of how to get the text of a book for export. |
static void |
main(String[] args)
Quick Demo |
void |
pickBible()
This is an example of the different ways to select a Book from the selection available. |
(package private) void |
rankedSearch()
An example of how to perform a ranked search. |
void |
readDictionary()
While Bible and Commentary are very similar, a Dictionary is read in a slightly different way. |
void |
readPlainText()
The source to this method is an example of how to read the plain text of a verse, and print it to stdout. |
void |
readStyledText()
This method demonstrates how to get styled text (in this case HTML) from a verse, and print it to stdout. |
void |
search()
An example of how to search for various bits of data. |
(package private) void |
searchAndShow()
An example of how to do a search and then get text for each range of verses. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String BIBLE_NAME
Constructor Detail |
---|
public APIExamples()
Method Detail |
---|
public void readPlainText() throws BookException, NoSuchKeyException
BookException
NoSuchKeyException
Book
public void readStyledText() throws NoSuchKeyException, BookException, TransformerException, SAXException
NoSuchKeyException
BookException
TransformerException
SAXException
Book
,
SAXEventProvider
public void readDictionary() throws BookException
BookException
Book
public void search() throws BookException
BookException
void rankedSearch() throws BookException
BookException
void searchAndShow() throws BookException, SAXException
BookException
SAXException
public void export() throws NoSuchKeyException, BookException
NoSuchKeyException
BookException
public void pickBible()
Config
,
Books
public static void main(String[] args) throws Exception
Exception
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |