com.sun.midp.rms |
The RecordStoreFile class provides a file interface to persistent
storage for MIDlet suite records via the RecordStore API. Implements
a unified random access file interface to storage utilizing the
capabilities of the File and RandomAccessStream classes provided by
the internal com.sun.midp.io.j2me.storage package.
An important capability of this class is to confine the scope of the
storage name space visible to a MIDlet to be files created by
applications in its MIDlet suite. This occurs because all
RecordStore calls that access storage do so through RecordStoreFile,
which converts maps the RecordStore's name into a unique identifier
in storage, prefixed by a prefix unique to its MIDlet suite. Any
call which modifies storage (e.g. deleteRecordStore) is confined in
scope to storage allocated by a MIDlet or another MIDlet in the same
suite.
|
Java Source File Name | Type | Comment |
AbstractRecordStoreFile.java | Interface | A RecordStoreFile is a file abstraction layer between a
a RecordStore and an underlying persistent storage mechanism.
The underlying storage methods are provided by the
RandomAccessStream and File classes.
RecordStoreFile confines the namespace of a record store to
the scope of the MIDlet suite of its creating application.
It also ensures unicode recordstore names are ascii filesystem safe.
The RecordStoreImpl class can be implemented directly using the
RandomAccessStream and File classes. |
AbstractRecordStoreImpl.java | Interface | An interface for a record store implementation. |
IntToIntMapper.java | Class | This class implements a mapping int --> int. |
RecordStoreFactory.java | Class | A utility class for checking and removing record stores. |
RecordStoreImpl.java | Class | A class implementing a MIDP a record store. |
RecordStoreIndex.java | Class | A class implementing a index of the record store. |
RecordStoreUtil.java | Class | A class implementing record store utility functions. |
TestFileRscLimit.java | Class | Test the global file resource limit by opening files up to and then past
the limit. |