Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.book.raw
Class ParaInstsMem  view ParaInstsMem download ParaInstsMem.java

java.lang.Object
  extended bycom.eireneh.bible.book.raw.Mem
      extended bycom.eireneh.bible.book.raw.InstsMem
          extended bycom.eireneh.bible.book.raw.ParaInstsMem
All Implemented Interfaces:
Insts

public class ParaInstsMem
extends InstsMem

A ParaInstsMem provides access to the list of paragraphs that punctuate the Bible.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.

Version:
D0.I0.T0

Field Summary
private  com.eireneh.bible.passage.Passage ref
          The storage of the Para markers
 
Fields inherited from class com.eireneh.bible.book.raw.InstsMem
array
 
Fields inherited from class com.eireneh.bible.book.raw.Mem
create, leafname, raw
 
Constructor Summary
ParaInstsMem(RawBible raw, boolean create)
          Basic constructor
ParaInstsMem(RawBible raw, boolean create, java.lang.StringBuffer messages)
          Basic constructor
 
Method Summary
 boolean getPara(com.eireneh.bible.passage.Verse verse)
          Set the new paragraph status for a verse.
 void init()
          Start all over again and clear the decks for more data.
 void load(java.io.InputStream in)
          Load the Resource from a stream
 void save(java.io.OutputStream out)
          Ensure that all changes to the index of words are written to a stream
 void setPara(boolean para, com.eireneh.bible.passage.Verse verse)
          Set the new paragraph status for a verse
 
Methods inherited from class com.eireneh.bible.book.raw.InstsMem
defaultLoad, defaultSave, getIndexes, getIndexes, setIndexes
 
Methods inherited from class com.eireneh.bible.book.raw.Mem
load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eireneh.bible.book.raw.Insts
save
 

Field Detail

ref

private com.eireneh.bible.passage.Passage ref
The storage of the Para markers

Constructor Detail

ParaInstsMem

public ParaInstsMem(RawBible raw,
                    boolean create)
             throws java.lang.Exception
Basic constructor


ParaInstsMem

public ParaInstsMem(RawBible raw,
                    boolean create,
                    java.lang.StringBuffer messages)
Basic constructor

Method Detail

init

public void init()
Start all over again and clear the decks for more data.

Overrides:
init in class InstsMem

load

public void load(java.io.InputStream in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException
Load the Resource from a stream

Specified by:
load in class Mem

save

public void save(java.io.OutputStream out)
          throws java.io.IOException
Ensure that all changes to the index of words are written to a stream

Specified by:
save in class Mem

setPara

public void setPara(boolean para,
                    com.eireneh.bible.passage.Verse verse)
Set the new paragraph status for a verse


getPara

public boolean getPara(com.eireneh.bible.passage.Verse verse)
Set the new paragraph status for a verse. If the load failed then we treat each verse as a new paragraph