Package | com.adobe.flascc.vfs |
Class | public class LSOBackingStore |
Inheritance | LSOBackingStore ![]() ![]() |
The contents of this VFS will persist until the user clears their LSO cache (which might happen when they clear their browser cache.)
Method | Defined By | ||
---|---|---|---|
LSOBackingStore(name:String)
Construct an LSOBackingStore using a named local shared object. | LSOBackingStore | ||
![]() | addDirectory(path:String):void
Insert a mapping representing a directory. | InMemoryBackingStore | |
![]() | addFile(path:String, data:ByteArray):void
Insert a mapping from path to data into the filemap. | InMemoryBackingStore | |
![]() | deleteFile(path:String):void
Given an array of strings representing file paths, this method removes
the reference to that file from the filemap. | InMemoryBackingStore | |
flush():void [override]
Writes all of the files back into the LSO, this might be slow so you need to decide when to call
this in your application to balance performance with reliability. | LSOBackingStore | ||
![]() | getFile(path:String):ByteArray
Given a file object returned from makeFileObject this method extracts the contents of that file as a ByteArray
| InMemoryBackingStore | |
![]() | getPaths():Vector.<String>
Retrieves all of the files paths contained in this BackingStore. | InMemoryBackingStore | |
![]() | isDirectory(path:String):Boolean
Checks if a path is a directory. | InMemoryBackingStore | |
![]() | pathExists(path:String):Boolean
Checks if a path exists. | InMemoryBackingStore |
LSOBackingStore | () | Constructor |
public function LSOBackingStore(name:String)
Construct an LSOBackingStore using a named local shared object.
Parametersname:String |
flush | () | method |
override public function flush():void
Writes all of the files back into the LSO, this might be slow so you need to decide when to call this in your application to balance performance with reliability.