Complete with code, this blog entry discusses creating an adapter to the J2ME RMS classes.
I have created a special adaptor to the RMS. It doesnot cover all the RMS capabilities but allows us to use RMS as a backend for a Map-like object structure. There is no java.util.Map interface in MIDP, so our "RecordMap" adapter uses java.util.Hashtable as a pattern. Even more, it extends java.util.Hashtable. It is a pure interface inheritance, all the methods are overridden in our RecordMap. |
You can ping this entry by using http://www.mamlambo.com/mt/mt-tb.cgi/54 .