public final class RecordStoreInfo
extends java.lang.Object
RecordStoreInfo
information remains up to
date for as long as the associated RecordStore
remains open.Modifier and Type | Method and Description |
---|---|
int |
getAuthMode()
Return the authorization mode that was set when the
RecordStore
associated with this RecordStoreInfo instance was created. |
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 writable state for the
RecordStore associated with this
RecordStoreInfo instance. |
public int getAuthMode() throws RecordStoreNotOpenException
RecordStore
associated with this RecordStoreInfo
instance was created.RecordStore
,
must be one of RecordStore.AUTHMODE_PRIVATE
or
RecordStore.AUTHMODE_ANY
RecordStoreNotOpenException
- if the record store is not
openpublic boolean isWriteable() throws RecordStoreNotOpenException
RecordStore
associated with this
RecordStoreInfo
instance.true
if the RecordStore
is to be
writable by other applications that are granted access,
false
otherwiseRecordStoreNotOpenException
- if the record store is not openpublic boolean isEncrypted() throws RecordStoreNotOpenException
RecordStore
associated with this
RecordStoreInfo
instance is encrypted.true
if the RecordStore
is
encrypted, false
otherwiseRecordStoreNotOpenException
- 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 openCopyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.