GLLib: GLLib : Recordstore management

GLLib

GLLib : Recordstore management
[GLLib]

handle RMS (save data) access (read write) More...


Modules

 GLLib : GLLib Profiler
 Utility functions for profiling in emulator and phone.

Functions

static void InitSharedRms (String strVendor, String strMidletName)
 Sets vendor name and midlet names - used for shared rms read/write.
static void Pack_CloseShared () throws Exception
 Closes current pack, previously opened with Pack_OpenShared.
static void Pack_OpenShared (String strName, String strVendor, String strMidletName) throws Exception
 Opens a shared rms pack.
static byte[] Rms_Read (String strName)
 Reads data from the recordstore.
static byte[] Rms_ReadShared (String strName, String strVendor, String strMidletName)
 Read data from shared recordstore.
static void Rms_Write (String strName, byte[] data)
 Writes data to the recordstore.
static void Rms_WriteShared (String strName, String strVendor, String strMidletName, byte[] data)
 Write data to shared recordstore.
static void SavePack (String packName, String rmsName)
 Reads a resource, and writes it into the the recordstore - used for DEBUG purposes.

Detailed Description

handle RMS (save data) access (read write)


Function Documentation

static void InitSharedRms ( String  strVendor,
String  strMidletName 
) [static, package, inherited]

Sets vendor name and midlet names - used for shared rms read/write.

Note:
Use only if GLLibConfig.rms_useSharing == true
Parameters:
strVendor Value of the field MIDlet-Vendor in jad/manifest of the application which is the owner of the rms
strMidletName Valuer of the field MIDlet-Name in jad/manifest of the application which is the owner of the rms

static void Pack_CloseShared (  )  throws Exception [static, package, inherited]

Closes current pack, previously opened with Pack_OpenShared.

Note:
Use only if GLLibConfig.rms_useSharing == true and GLLibConfig.rms_usePackRead == true

static void Pack_OpenShared ( String  strName,
String  strVendor,
String  strMidletName 
) throws Exception [static, package, inherited]

Opens a shared rms pack.

Note:
Use only if GLLibConfig.rms_useSharing == true and GLLibConfig.rms_usePackRead == true
Parameters:
strName Rms name
strVendor Value of the field MIDlet-Vendor in jad/manifest of the application which is the owner of the rms
strMidletName Valuer of the field MIDlet-Name in jad/manifest of the application which is the owner of the rms

static byte [] Rms_Read ( String  strName  )  [static, package, inherited]

Reads data from the recordstore.

Parameters:
strName Filename of recordstore to read from
Returns:
A byte array, containing the recordstore data

static byte [] Rms_ReadShared ( String  strName,
String  strVendor,
String  strMidletName 
) [static, package, inherited]

Read data from shared recordstore.

Note:
Use only if GLLibConfig.rms_useSharing == true
Parameters:
strName Rms name
strVendor Value of the field MIDlet-Vendor in jad/manifest of the application which is the owner of the rms
strMidletName Valuer of the field MIDlet-Name in jad/manifest of the application which is the owner of the rms

static void Rms_Write ( String  strName,
byte[]  data 
) [static, package, inherited]

Writes data to the recordstore.

Parameters:
strName Filename of recordstore to write to
data Data array for saving into the recordstore

static void Rms_WriteShared ( String  strName,
String  strVendor,
String  strMidletName,
byte[]  data 
) [static, package, inherited]

Write data to shared recordstore.

Note:
Use only if GLLibConfig.rms_useSharing == true
Parameters:
strName Rms name
strVendor Value of the field MIDlet-Vendor in jad/manifest of the application which is the owner of the rms
strMidletName Valuer of the field MIDlet-Name in jad/manifest of the application which is the owner of the rms
data Byte array data to write in the rms

static void SavePack ( String  packName,
String  rmsName 
) [static, package, inherited]

Reads a resource, and writes it into the the recordstore - used for DEBUG purposes.

Parameters:
packName Filename of a pack to read from
rmsName Name of a recordstore to write to


Generated on Tue Sep 23 23:05:31 2008 for GLLib by  doxygen 1.5.2