This class handles a file in the storage system. Be aware that in some platforms files may be easily lost, such us Flash or HTML 5.

Methods

append (data:Blob):Void

Append data to a file.

Parameters:

data

The data to write.

appendString (data:String):Void

Append a string into the file.

Parameters:

data

The string.

canAppend ():Bool

Returns true if we can happend data to a file.

maxSize ():Int

Returns the file max size.

read ():Blob

Read the file.

Returns:

The data in blod format.

readObject ():Dynamic

Read the file as an object

Returns:

The file as an object.

readString ():String

Read the file and return a string.

Returns:

The file information as string.

write (data:Blob):Void

Write data to a file.

Parameters:

data

The data to write.

writeObject (object:Dynamic):Void

Write an object into the file.

Parameters:

data

The object.

writeString (data:String):Void

Write a string into the file.

Parameters:

data

The string.