javax.microedition.rms
Class RecordStore
java.lang.Object
javax.microedition.rms.RecordStore
public class RecordStore
- extends java.lang.Object
|
Constructor Summary |
protected |
RecordStore(java.lang.String name,
java.util.Dictionary props)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTHMODE_ANY
public static final java.lang.String AUTHMODE_ANY
- See Also:
- Constant Field Values
RecordStore
protected RecordStore(java.lang.String name,
java.util.Dictionary props)
openRecordStore
public static RecordStore openRecordStore(java.lang.String recordStoreName,
boolean createIfNecessary)
throws RecordStoreException
- Throws:
RecordStoreException
addRecord
public int addRecord(byte[] data,
int offset,
int numBytes)
throws RecordStoreFullException
- Throws:
RecordStoreFullException
deleteRecordStore
public static void deleteRecordStore(java.lang.String recordStoreName)
throws RecordStoreNotFoundException
- Throws:
RecordStoreNotFoundException
listRecordStores
public static java.lang.String[] listRecordStores()
throws java.io.IOException
- Throws:
java.io.IOException
setMode
public void setMode(java.lang.String authmodeAny,
boolean b)
getRecord
public byte[] getRecord(int iD)
throws RecordStoreException
- Throws:
RecordStoreException
deleteRecord
public void deleteRecord(int iD)
throws RecordStoreException
- Throws:
RecordStoreException
enumerateRecords
public RecordEnumeration enumerateRecords(RecordFilter filter,
RecordComparator comparator,
boolean keepUpdated)
getName
public java.lang.String getName()
getNumRecords
public int getNumRecords()
throws RecordStoreException
- Throws:
RecordStoreException
setRecord
public void setRecord(int recordId,
byte[] data,
int i,
int length)
throws RecordStoreException
- Throws:
RecordStoreException