| Package | org.openPyro.core.storage |
| Interface | public interface IStorage extends flash.events.IEventDispatcher |
| Implementors | SharedObjectStorage |
| Property | Defined by | ||
|---|---|---|---|
| storeCreated : Boolean [read-only]
Function used to verify if the store was successfully created or not.
| IStorage | ||
| Method | Defined by | ||
|---|---|---|---|
|
getStoredData():String
| IStorage | ||
|
save(object:ISerializable, overwrite:Boolean = true):void
Called to save the contents of the store to tje storage implementation.
| IStorage | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the store fails in persisting any object to the store | IStorage | |||
| Dispatched when the store succeeds in persisting any object to the store | IStorage | |||
| storeCreated | property |
storeCreated:Boolean [read-only]Function used to verify if the store was successfully created or not. For example, users may have sharedObject turned off or may not allow filesystem access or may be offline for remote storage.
Implementation public function get storeCreated():Boolean
| getStoredData | () | method |
public function getStoredData():StringReturns
String — The string stored by the IStorage implementation.
If the store does not exist or could not be read, return
null.
|
| save | () | method |
public function save(object:ISerializable, overwrite:Boolean = true):voidCalled to save the contents of the store to tje storage implementation. Since this may be an async process, success or failure is indicated by dispatching a storeSucceeded or storeFailed Event.
Parametersobject:ISerializable |
|
overwrite:Boolean (default = true) |
See also
| storageFailed | event |
net.comcast.pyro.storage.events.StorageEvent
Dispatched when the store fails in persisting any object to the store
| storeSucceeded | event |
net.comcast.pyro.storage.events.StorageEvent
Dispatched when the store succeeds in persisting any object to the store