Name
javax.microedition.rms.RecordStore
Synopsis
This class represents a record store, which is a collection of
records that remains persistent across multiple invocations of the
MIDlet. To open a new record store, use openRecordStore( )
where the name of the record store is case-sensitive and
may consist of any combination of up to 32 Unicode characters. This
class provides several self-explanatory methods for adding and
deleting records, enumerating through records, and so on.
public classRecordStore
extends Object { // public class methods public static voiddeleteRecordStore
(String recordStoreName) throws RecordStoreException, RecordStoreNotFoundException; public static String[]listRecordStores
( ); public static RecordStoreopenRecordStore
(String recordStoreName, boolean createIfNecessary) throws RecordStoreException, RecordStoreFullException, RecordStoreNotFoundException; // public instance methods public intaddRecord
(byte data[], int offset, int numBytes) throws RecordStoreNotOpenException, RecordStoreException, RecordStoreFullException; public voidaddRecordListener
(RecordListener listener); public voidcloseRecordStore
( ) throws RecordStoreNotOpenException, RecordStoreException; public voiddeleteRecord
(int recordId) throws RecordStoreNotOpenException, InvalidRecordIDException, RecordStoreException; public RecordEnumerationenumerateRecords
(RecordFilter filter, RecordComparator comparator, boolean keepUpdated) throws RecordStoreNotOpenException; public longgetLastModified ...
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.