public class BibleToOsis extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static String |
BIBLE_NAME
The name of a Bible to find
|
private static String |
BIBLE_RANGE |
private static boolean |
BY_BOOK |
private String |
filename |
private static FieldPosition |
pos |
private static String |
preVerseElement |
private static Pattern |
preVersePattern |
private static String |
preVerseStart |
private static String |
psalmTitleElement |
private static Pattern |
psalmTitlePattern |
private static String |
psalmTitleStart |
private Writer |
writer |
Constructor and Description |
---|
BibleToOsis() |
Modifier and Type | Method and Description |
---|---|
private void |
buildBookClose(StringBuffer buf) |
private void |
buildBookOpen(StringBuffer buf,
String bookName) |
private void |
buildChapterClose(StringBuffer buf) |
private void |
buildChapterOpen(StringBuffer buf,
String bookName,
int chapter) |
private void |
buildDocumentClose(StringBuffer buf,
boolean force) |
private void |
buildDocumentOpen(StringBuffer buf,
BookMetaData bmd,
String range,
boolean force) |
private void |
buildPreVerseClose(StringBuffer buf) |
private void |
buildPreVerseOpen(StringBuffer buf,
String preVerse) |
private void |
buildPsalmTitle(StringBuffer buf,
String psalmTitle) |
private void |
buildVerseClose(StringBuffer buf,
String osisID) |
private void |
buildVerseOpen(StringBuffer buf,
String osisID) |
private void |
closeOutputFile(boolean close) |
void |
dump(String name,
String range) |
static void |
main(String[] args) |
private void |
openOutputFile(String newFilename,
boolean open) |
private void |
parse() |
private void |
writeDocument(StringBuffer buf) |
private static final String BIBLE_NAME
private static final String BIBLE_RANGE
private static final boolean BY_BOOK
private static FieldPosition pos
private static String preVerseStart
private static String preVerseElement
private static Pattern preVersePattern
private static String psalmTitleStart
private static String psalmTitleElement
private static Pattern psalmTitlePattern
private Writer writer
private String filename
public static void main(String[] args)
args
- public void dump(String name, String range) throws NoSuchKeyException, IOException, BookException
private void buildDocumentOpen(StringBuffer buf, BookMetaData bmd, String range, boolean force)
private void buildDocumentClose(StringBuffer buf, boolean force)
private void buildBookOpen(StringBuffer buf, String bookName)
private void buildBookClose(StringBuffer buf)
private void buildChapterClose(StringBuffer buf)
private void buildChapterOpen(StringBuffer buf, String bookName, int chapter)
private void buildPsalmTitle(StringBuffer buf, String psalmTitle)
private void buildPreVerseOpen(StringBuffer buf, String preVerse)
private void buildPreVerseClose(StringBuffer buf)
private void buildVerseOpen(StringBuffer buf, String osisID)
private void buildVerseClose(StringBuffer buf, String osisID)
private void openOutputFile(String newFilename, boolean open) throws IOException
IOException
private void writeDocument(StringBuffer buf) throws IOException
IOException
private void closeOutputFile(boolean close) throws IOException
IOException
private void parse()