public final class RMSUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cacheDelete(char priority,
byte[] digest)
Delete one item from a cache
|
byte[] |
cacheRead(char priority,
byte[] digest)
Read from the record store a cached value based on the hashcode of the
key to the data
|
void |
cacheWrite(char priority,
byte[] digest,
byte[] data)
Write to the record store a cached value based on the hashcode of the key
to the data
|
void |
delete(java.lang.String key)
Delete one item
|
java.util.Vector |
getCacheRecordStoreNames()
Return of a list of record stores whose name indicates that they are
caches
|
static RMSUtils |
getInstance()
Access the singleton
|
java.util.Vector |
getNoncacheRecordStoreNames()
Return of a list of record stores which are not part of a cache
|
byte[] |
read(java.lang.String key)
Reads the data from the given record store.
|
void |
wipeRMS()
Remove all record stores
This is rather violent.
|
void |
write(java.lang.String key,
byte[] data)
Writes the byte array to the record store.
|
public static RMSUtils getInstance()
public java.util.Vector getCacheRecordStoreNames()
public java.util.Vector getNoncacheRecordStoreNames()
public void wipeRMS()
public void cacheWrite(char priority, byte[] digest, byte[] data) throws javax.microedition.rms.RecordStoreFullException, org.tantalum.storage.FlashDatabaseException
priority
- data
- digest
- javax.microedition.rms.RecordStoreFullException
org.tantalum.storage.FlashDatabaseException
public void write(java.lang.String key, byte[] data) throws javax.microedition.rms.RecordStoreFullException, org.tantalum.storage.FlashDatabaseException
key
- data
- javax.microedition.rms.RecordStoreFullException
org.tantalum.storage.FlashDatabaseException
public byte[] cacheRead(char priority, byte[] digest) throws org.tantalum.storage.FlashDatabaseException
priority
- digest
- org.tantalum.storage.FlashDatabaseException
public byte[] read(java.lang.String key) throws org.tantalum.storage.FlashDatabaseException
key
- org.tantalum.storage.FlashDatabaseException
public void cacheDelete(char priority, byte[] digest) throws org.tantalum.storage.FlashDatabaseException
priority
- digest
- org.tantalum.storage.FlashDatabaseException
public void delete(java.lang.String key) throws org.tantalum.storage.FlashDatabaseException
key
- org.tantalum.storage.FlashDatabaseException