| java.util.List example.mmademo.SimpleRmsBrowser
SimpleRmsBrowser | class SimpleRmsBrowser extends List implements CommandListener,Utils.ContentHandler(Code) | | A RecordStore (RMS) browser. Used in SimplePlayer.
Pseudo URLs are used:
rms:/RecordStoreName#index
Examples:
rms:/TheStorage#3 - to get index 3 in RecordStore named "TheStorage"
rms:/ - to list all RecordStores
rms:/TheStorage - to list the indexes in RecordStore named "TheStorage"
version: 1.2 |
close | public void close()(Code) | | |
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to commands
|
display | public void display(String url, int selectedIndex)(Code) | | |
getRecordStore | public static RecordStore getRecordStore(String url, boolean canCreate) throws Exception(Code) | | Callers must make sure to call closeRecordStore() !
|
getRecordStoreStream | public static InputStream getRecordStoreStream(RecordStore rs, int index) throws RecordStoreException, Exception(Code) | | |
isRmsFile | public static boolean isRmsFile(String url)(Code) | | true if the URL points to a file, i.e. Record Store name + Index |
|
|