|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the OpenFileState that this class extends.public interface StatefulFileBackedBackend<T extends OpenFileState>
Indicates that there is a stateful backend
for license details.
The copyright to this program is held by it's authors.
Method Summary | |
---|---|
T |
initState()
Initialises the state required to read from files, specific to each different backend |
String |
readRawContent(T state,
Key key)
|
void |
setAliasKey(T state,
Key alias,
Key source)
Sets alias for a comment on a verse range I.e. |
void |
setRawText(T state,
Key key,
String text)
Set the text allotted for the given verse |
Method Detail |
---|
T initState() throws BookException
BookException
String readRawContent(T state, Key key) throws BookException, IOException
state
- the state object containing all the open random access fileskey
- the verse that is soughtkeyName
- the name of the current key
IOException
- something went wrong when reading the verse
BookException
void setRawText(T state, Key key, String text) throws BookException, IOException
state
- TODOkey
- The key to set text totext
- The text to be set for key
BookException
- If the data can not be set.
IOException
- If the module data path could not be created.void setAliasKey(T state, Key alias, Key source) throws IOException
alias
- Alias Keysource
- Source Key
IOException
- Exception when anything goes wrong on writing the alias
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |