January 2002
Intermediate to advanced
264 pages
8h 3m
English
javax.microedition.rms.RecordEnumeration
This interface maintains a sequence of the record IDs of the records in a record store. The enumerator iterates over all the records in an order determined by an optional record comparator. In order to iterate over a subset of the records, a filter can be supplied.
public interfaceRecordEnumeration{ // public instance methods public voiddestroy( ) throws IllegalStateException; public booleanhasNextElement( ); public booleanhasPreviousElement( ); public booleanisKeptUpdated( ); public voidkeepUpdated(boolean keepUpdated); public byte[]nextRecord( ) throws InvalidRecordIDException, RecordStoreNotOpenException, RecordStoreException; public intnextRecordId( ) InvalidRecordIDException; public intnumRecords( ); public byte[]previousRecord( ) throws InvalidRecordIDException, RecordStoreNotOpenException, RecordStoreException; public intpreviousRecordId( ) InvalidRecordIDException; public voidrebuild( ); public voidreset( ); }
Read now
Unlock full access