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 void deleteRecordStore(String recordStoreName) throws
                      RecordStoreException, RecordStoreNotFoundException;
   public static String[] listRecordStores(  );
   public static RecordStore openRecordStore(String recordStoreName, boolean
                 createIfNecessary) throws RecordStoreException,
                 RecordStoreFullException, RecordStoreNotFoundException;
   // public instance methods
   public int addRecord(byte data[], int offset, int numBytes) throws
              RecordStoreNotOpenException, RecordStoreException, 
              RecordStoreFullException;
   public void addRecordListener(RecordListener listener);
   public void closeRecordStore(  ) throws RecordStoreNotOpenException,
               RecordStoreException;
   public void deleteRecord(int recordId) throws RecordStoreNotOpenException,
               InvalidRecordIDException, RecordStoreException;
   public RecordEnumeration enumerateRecords(RecordFilter filter, 
                            RecordComparator comparator, boolean keepUpdated) 
                            throws RecordStoreNotOpenException;
   public long getLastModified ...

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.