tags:

views:

523

answers:

3

I need to store large amount of data using RMS cocepts through J2ME so how can i store that mutiple column data those data must be hardcoded so i need to store those multiple colum and rows data please help me how can i do this in this i have struct if i come to know how can i store/hardcode through RMS concept please help me

A: 

Well, RMS only allows you to store records that are arrays of bytes. You will have to decide for yourself how a record is stored, and if you want to store your data in a single or in multiple records. If you use the DataInputStream and DataOutputStream classes, you'll be able to read/write Strings, booleans, integers, etc. The API documentation includes a decent example of how you can do this.

If you have complex data to store, or a lot of different objects, you may want to create a simple library for RMS I/O, that allows you to pass objects implementing e.g. "Storable" to a library class that writes away your object into RMS.

Jeroen Heijmans
A: 

Has Jeroen said RMS is quite basic. You can only store arrays of bytes. But, though it's basic, it's quite easy implement a more complex memory structure with an index stored in a record store and addressing other record stores containing data.

Have a look to this page : Understanding the Record Management System

A: 

See my question on exacty the same topic. In the end we bought a commercial BTree imeplementation and extended it to work across multiple record stores.

roryf