|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.sword.NullBackend
public class NullBackend
A NullBackend is not attached to resources.
The GNU Lesser General Public License for details.| Constructor Summary | |
|---|---|
NullBackend()
|
|
| Method Summary | |
|---|---|
boolean |
contains(Key key)
Determine whether this Book contains the key in question |
void |
create()
Create the directory to hold the Book if it does not exist. |
void |
decipher(byte[] data)
Decipher the data in place, if it is enciphered and there is a key to unlock it. |
void |
encipher(byte[] data)
Encipher the data in place, if there is a key to unlock it. |
SwordBookMetaData |
getBookMetaData()
|
Key |
getGlobalKeyList()
Gets the fast global key list, and if this operation is not supported, throws a UnsupportedOperationException |
String |
getRawText(Key key)
Get the text as it is found in the Book for the given key |
int |
getRawTextLength(Key key)
Determine the size of the raw data for the key in question. |
boolean |
isSupported()
Returns whether this AbstractBackend is implemented. |
boolean |
isWritable()
A Backend is writable if the file system allows the underlying files to be opened for writing and if the backend has implemented writing. |
Key |
readIndex()
Initialize a AbstractBackend before use. |
List |
readToOsis(Key key,
RawTextToXmlProcessor processor)
Get the text allotted for the given entry |
void |
setAliasKey(Key alias,
Key source)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullBackend()
| Method Detail |
|---|
public SwordBookMetaData getBookMetaData()
getBookMetaData in interface Backendpublic void decipher(byte[] data)
Backend
decipher in interface Backenddata - the data to unlockpublic void encipher(byte[] data)
Backend
encipher in interface Backendpublic Key readIndex()
Backend
readIndex in interface Backendpublic boolean contains(Key key)
Backend
contains in interface Backendkey - The key whose presence is desired.
public String getRawText(Key key)
throws BookException
Backend
getRawText in interface Backendkey - the key for which the raw text is desired.
BookException
public void setAliasKey(Key alias,
Key source)
throws BookException
setAliasKey in interface BackendBookExceptionpublic int getRawTextLength(Key key)
Backend
getRawTextLength in interface Backendkey - The key whose raw data length is desired.
public Key getGlobalKeyList()
throws BookException
BackendUnsupportedOperationException
getGlobalKeyList in interface BackendBookException - the book exception if for some reason the book failed to be read properly.
public List readToOsis(Key key,
RawTextToXmlProcessor processor)
throws BookException
Backend
readToOsis in interface Backendkey - The key to fetchprocessor - processor that executes before/after the content is read from
disk or another kind of backend
BookException - If the data can not be read.
public void create()
throws IOException,
BookException
Backend
create in interface BackendIOException
BookExceptionpublic boolean isSupported()
Backend
isSupported in interface Backendpublic boolean isWritable()
Backend
isWritable in interface Backend
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||