|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.rms.RecordStoreInfo
public final class RecordStoreInfo
A class representing information about a RecordStore,
including authorization mode, encryption status, writeable status, and size
information. The RecordStoreInfo
information remains up to
date for as long as the associated RecordStore
remains open.
Method Summary | |
---|---|
int |
getAuthMode()
Reurn the authorization mode that was set when the RecordStore
associated with this |
long |
getSize()
Returns the amount of space, in bytes, that the record store occupies. |
long |
getSizeAvailable()
Returns the amount of additional room (in bytes) available for this record store to grow. |
boolean |
isEncrypted()
Return a boolean indicating if the RecordStore associated with this
RecordStoreInfo instance is encrypted. |
boolean |
isWriteable()
Return the boolean writeable state for the RecordStore associated with this
RecordStoreInfo instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getAuthMode() throws RecordStoreNotOpenException
RecordStore
associated with this
RecordStoreNotOpenException
- if the record store is not openpublic boolean isWriteable() throws RecordStoreNotOpenException
RecordStore
associated with this
RecordStoreInfo
instance.
RecordStoreNotOpenException
- if the record store is not openpublic boolean isEncrypted() throws RecordStoreNotOpenException
RecordStore
associated with this
RecordStoreInfo
instance is encrypted.
RecordStoreNotOpenException
- if the record store is not openpublic long getSize() throws RecordStoreNotOpenException
java.lang.Long.MAX_VALUE
, then
java.lang.Long.MAX_VALUE
MUST be returned.
RecordStoreNotOpenException
- if the record store is not openpublic long getSizeAvailable() throws RecordStoreNotOpenException
java.lang.Long.MAX_VALUE
, then
java.lang.Long.MAX_VALUE
MUST be returned.
RecordStoreNotOpenException
- if the record store is not open
|
MIDP3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |