|
MIDP3.0 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use RecordStoreException | |
---|---|
javax.microedition.rms | The Mobile Information Device Profile provides a mechanism for MIDlets to persistently store data and later retrieve it. |
Uses of RecordStoreException in javax.microedition.rms |
---|
Subclasses of RecordStoreException in javax.microedition.rms | |
---|---|
class |
InvalidRecordIDException
Thrown to indicate an operation could not be completed because the record ID was invalid. |
class |
RecordStoreFullException
Thrown to indicate an operation could not be completed because the record store system storage is full. |
class |
RecordStoreNotFoundException
Thrown to indicate an operation could not be completed because the record store could not be found. |
class |
RecordStoreNotOpenException
Thrown to indicate that an operation was attempted on a closed record store. |
class |
SecureRecordStoreException
Thrown to indicate that a problem occurred during the process of Encrypting or Decrypting data of a Secure RecordStore. |
Methods in javax.microedition.rms that throw RecordStoreException | |
---|---|
int |
RecordStore.addRecord(byte[] data,
int offset,
int numBytes)
Adds a new record to the record store, and returns the recordId for this new record. |
int |
RecordStore.addRecord(byte[] data,
int offset,
int numBytes,
int tag)
Adds a new record to the record store and associates the record with the given tag. |
void |
RecordStore.closeRecordStore()
This method is called when the MIDlet requests to have the record store closed. |
void |
RecordStore.deleteRecord(int recordId)
The record is deleted from the record store; the recordId for this record MUST NOT be reused. |
static void |
RecordStore.deleteRecordStore(java.lang.String recordStoreName)
Deletes the named record store. |
static void |
RecordStore.exportRecordStore(java.io.OutputStream os,
java.lang.String recordStoreName,
java.lang.String internalPassword,
java.lang.String exportPassword)
Exports the record store to an RMS stream (see RMS Interchange Format). |
int |
RecordStore.getNextRecordID()
Returns the recordId of the next record to be added to the record store. |
byte[] |
RecordStore.getRecord(int recordId)
Returns a copy of the data stored in the given record. |
int |
RecordStore.getRecord(int recordId,
byte[] buffer,
int offset)
Returns the data stored in the given record. |
int |
RecordStore.getRecordSize(int recordId)
Returns the size (in bytes) of the MIDlet data available in the given record. |
int |
RecordStore.getTag(int recordId)
Returns the tag associated with the recordId. |
static RecordStore |
RecordStore.importRecordStore(java.io.InputStream is,
java.lang.String importPassword,
java.lang.String internalPassword)
Imports the record store from an encrypted or plaintext RMS stream (see RMS Interchange Format). |
byte[] |
RecordEnumeration.nextRecord()
Returns a copy of the next record in this enumeration, where next is defined by the comparator and/or filter supplied in the constructor of this enumerator. |
static RecordStore |
RecordStore.openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
Open (and possibly create) a record store associated with the current MIDlet suite. |
static RecordStore |
RecordStore.openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary,
int authmode,
boolean writeable)
Open (and possibly create) a record store that can be shared with other MIDlet suites. |
static RecordStore |
RecordStore.openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary,
int authmode,
boolean writeable,
java.lang.String password)
Open (and possibly create) a record store that can be shared with other MIDlet suites. |
static RecordStore |
RecordStore.openRecordStore(java.lang.String recordStoreName,
java.lang.String vendorName,
java.lang.String suiteName)
Open a record store associated with the named MIDlet suite. |
static RecordStore |
RecordStore.openRecordStore(java.lang.String recordStoreName,
java.lang.String vendorName,
java.lang.String suiteName,
java.lang.String password)
Open a record store associated with the named MIDlet suite. |
byte[] |
RecordEnumeration.previousRecord()
Returns a copy of the previous record in this enumeration, where previous is defined by the comparator and/or filter supplied in the constructor of this enumerator. |
void |
RecordStore.setMode(int authmode,
boolean writeable)
Changes the access mode for this RecordStore. |
void |
RecordStore.setRecord(int recordId,
byte[] newData,
int offset,
int numBytes)
Sets the data in the given record to the provided new data. |
void |
RecordStore.setRecord(int recordId,
byte[] newData,
int offset,
int numBytes,
int tag)
Sets the data in the given record to the provided new data. |
|
MIDP3.0 | |||||||||
PREV NEXT | FRAMES NO FRAMES |