|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcafe.fingerprintauthentication.FingerprintCache
public class FingerprintCache
This class implements the cache part of the FingerprintAuthentication component. It's purpose is
to store the FingeprintDataCache
objects.
Constructor Summary | |
---|---|
FingerprintCache()
|
Method Summary | |
---|---|
boolean |
deleteFingerprint(int id)
This method deletes the fingerprint marked by id from cache . |
FingerprintCacheData |
getNextFingerprint()
This method is used to get fingerprints from the cache for
comparison. |
void |
insertFingerprint(int id,
com.griaule.grfingerjava.Template data)
This method is for inserting single fingerprint. |
void |
loadCache(FingerprintCacheData[] data)
This method (re)loads fingerprints in the cache. |
void |
resetIterator()
This method resets cacheiterator back into the beginning
when we start to look for a fingerprint. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FingerprintCache()
Method Detail |
---|
public void insertFingerprint(int id, com.griaule.grfingerjava.Template data)
Template
object. We will use this to make new FingerprintCacheData
object. Which is then inserted into cache
. If cache
isn't
initialized yet we will create a new cache
object.
id
- data
- public boolean deleteFingerprint(int id)
id
from cache
.
id
- public void loadCache(FingerprintCacheData[] data)
Vector
is also sized according to how
many fingerprints we are adding and also the initial size
is added to
the Vector
size so that it will accomodate new fingerprints if needed.
data
- public FingerprintCacheData getNextFingerprint()
cache
for
comparison.
FingerprintCacheData
or null
if we have gone trough all prints.public void resetIterator()
cacheiterator
back into the beginning
when we start to look for a fingerprint.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |