|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.Backend
org.crosswire.jsword.book.sword.LZSSBackend
public class LZSSBackend
A backend to read LZSS compressed data files.
Distribution Licence: JSword 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, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Constructor Summary | |
---|---|
LZSSBackend(SwordBookMetaData sbmd,
File rootPath)
Simple ctor |
Method Summary | |
---|---|
void |
activate(Lock lock)
Called to indicate that the Book should initialize itself, and consume whatever system resources it needs to be able to respond to other queries. |
void |
deactivate(Lock lock)
Called to indicate that the Book should release whatever system resources it can to make way for other uses. |
String |
getRawText(Key key)
Get the bytes alotted for the given verse |
boolean |
isSupported()
Returns whether this Backend is implemented. |
Key |
readIndex()
Initialise a Backend before use. |
Methods inherited from class org.crosswire.jsword.book.sword.Backend |
---|
decipher, getBookMetaData, getRootPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LZSSBackend(SwordBookMetaData sbmd, File rootPath)
Method Detail |
---|
public final void activate(Lock lock)
Activatable
lock
- An attempt to ensure that only the Activator calls this methodpublic final void deactivate(Lock lock)
Activatable
lock
- An attempt to ensure that only the Activator calls this methodpublic String getRawText(Key key) throws BookException
Backend
getRawText
in class Backend
key
- The key to fetch
BookException
- If the data can not be read.public Key readIndex()
Backend
readIndex
in class Backend
public boolean isSupported()
Backend
isSupported
in class Backend
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |